i received my device today and i could not be happier, it's really amazing, and the display is really cool. Really way above my expectations, great job guys.
i use a software called Eventghost to automate my house, great software. it's based on python. to make it short, i want to have an app where i can send info from eventghost to LaMetric.
i need to convert the curl code to python, i have this so far.
i'm not getting any errors in python but the device is not updating. If any one has any suggestions please let me know.
it'll be great to be able to push any type of info
Best Answer
J
Jessica Jones
said
about 9 years ago
As I posted on the EventGhost forums the day after you posted this (I'm adding the answer here as well for anyone who might be having the same problem), stringifying the JSON seems to help.
From there, passing "payload" into the requests.post() call should be more successful :)
1 Comment
J
Jessica Jones
said
about 9 years ago
Answer
As I posted on the EventGhost forums the day after you posted this (I'm adding the answer here as well for anyone who might be having the same problem), stringifying the JSON seems to help.
user1306
i received my device today and i could not be happier, it's really amazing, and the display is really cool. Really way above my expectations, great job guys.
i use a software called Eventghost to automate my house, great software. it's based on python. to make it short, i want to have an app where i can send info from eventghost to LaMetric.
i need to convert the curl code to python, i have this so far.
i'm not getting any errors in python but the device is not updating. If any one has any suggestions please let me know.
it'll be great to be able to push any type of info
As I posted on the EventGhost forums the day after you posted this (I'm adding the answer here as well for anyone who might be having the same problem), stringifying the JSON seems to help.
payload = json.dumps(myJSONVar, indent=4, separators=(",", ": "))
From there, passing "payload" into the requests.post() call should be more successful :)
Jessica Jones
As I posted on the EventGhost forums the day after you posted this (I'm adding the answer here as well for anyone who might be having the same problem), stringifying the JSON seems to help.
payload = json.dumps(myJSONVar, indent=4, separators=(",", ": "))
From there, passing "payload" into the requests.post() call should be more successful :)
-
How to pull data from external site to display?
-
nodejs request "gets acces denied"
-
curl to python for eventghost
-
Basic API pull and json parse example....
-
A guide for starting an app?
-
A small wrapper to push your just created JIRA issues to your LaMetric.
-
Simple project to push home consumption data to be shown on a Lametric device
-
Interface to have Slack send messages to a LaMetric Time
-
Very simple module to push frames to LaMetric
See all 149 topics