I was trying to design a project, for fun, that basically shows the temperature, humidity, lights and other stuff from sensors in a nice looking menu. I need some help on the menu scrolling, I had an idea but it is unreliable so if anyone can help, thanks.
Comments
How are you getting all the information into the program. Can you post what you have so far.
Yep, The UI right now is bad but I have to have functionality before looks, I have nothing towards the actual strings for temperature and other things.
Yes everything is a little messy I just started.
Code:
Not sure what you're trying to do, but here's something that might get you started. Slide your finger up/down the screen to change the temperature. If this doesn't help, give a better explanation of what you want to happen.
Thank you, I was trying to make something that you can scroll down with like a webpage, but I fixed up my code and basically am fitting everything on one screen, if I can't then I will figure something out. I got my temperature display up and humidity using "http.request". Thank you so much for the help and such a quick response, the staff here is incredible.
@SaladFingers Glad to hear you got things working.
The staff
that you're referring to are just users like yourself. It's just that we've been here longer and want to help new users understand how to write code. Maybe one day you'll bethe staff
.@SaladFingers If you need to scroll the screen, here's an example.
Thanks, new problem. Here's the url I'm fetching data from (I put xX's in so you or anyone else can't turn on and off my lights) http://veraplus:XXXX/data_request?id=action&output_format=xml&DeviceNum=25&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0 As you can see the last number is 0 which is the light "level" if you will, 0 is off, 50 is half brightness and 100 is full brightness. So how would I be able to change this with a parameter, sorry for my novice questions I am self teaching this language.
Nevermind just figured it out