Basic Transition Issues

I’m trying to write a basic script which uses the remote API to turn on my lights, then transition them to a certain color. The code for doing so using a custom SDK looks something like this: group.SetState(hue.State{On: true, Bri: 0, Hue: 4000, TransitionTime: 0}) time.Sleep(1 * time.Second) group.SetState(hue.State{TransitionTime: 300, Bri: 254, Hue: 11500, Sat:…

Details

Flutter Firebase how would I go about getting specific data from snapshot

I am currently using a realtime database for my application. I am having trouble reading specific user data from a snapshot. My code: final databaseReference = FirebaseDatabase.instance.reference(); void getData() { databaseReference.once().then((DataSnapshot snapshot) { Map<dynamic, dynamic> values = snapshot.value; //print(snapshot.value[‘name’]); print(‘Data : ${snapshot.value}’); }); } My database layout: Users: userId: name: TEST email: [email protected] bio: TESTBio…

Details