Hi, so good news: since you already have some working code, this should actually be pretty simple for you.
Take a look at the advanced webhook builder route. For the URL you would put that same URL you’re using.
You can then send JSON in your payload which can be parsed and then reformatted in the route.
So like your device would send to our cloud something like this:
{"temp":75,"hum":60}
(You can keep it pretty compact to save on cellular data)
And then in the payload for the route you can do something like this:
Can you give me an example to bypass your cloud? I’d love to try both of your suggestions, and when I get them working, I’ll post both for others to learn too.
Run sudo hologram network connect
That’ll bring up a ppp0 network interface and then you can run the script you already have. If you have wifi and cellular up at the same time, it may use either one. There are some ways to get the requests library to bind to a specific interface.