Page 1 of 2

Pushsafer and ThingsonEdge Cricket Board

Posted: 9. Sep 2022, 16:49
by graham1963
Hi. Has anyone tried to use the Thingsonedge Cricket board v1.0 with Pushsafer. I am using the https:/ post facility and using the 'send notification' section to create a message. The message is coming through OK, but the cricket is supposed to send the Battery voltage information and also the on board Temperature sensor reading, but I cannot see how to get the cricket to send this information. Anyone used pushsafer with this board before?
Many thanks for your help.

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 9. Sep 2022, 19:05
by admin
Hi,

i've never used a cricked board to send a push-notification by pushsafer.
But i found this documentation: https://docs.google.com/document/d/e/2P ... CRyLHk/pub

I think this should help you.

If not you can post some screenshots from the set up page.

Kevin

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 9. Sep 2022, 19:21
by graham1963
Hi. Thanks for the reply. I had been using this, but am probably still doing something wrong. My toe_device screen is attached. I have the pushsafer.com web address along with my api key and also an m=Bedroom. The text 'Bedroom' comes through OK, but not the batt value or temp value.
I have the payload as a copy and paste from that on the documentation under HTTP Post. {"value1":"#batt","value2":"#temp"}
Thanks
Graham

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 10. Sep 2022, 12:45
by admin
Hi,

please use https://www.pushsafer.com/api for URL

Content type select application/x-www-form-urlencoded if possible

Payload should look like this: k={your_privatekey}&d={your_deviceid}&t=Bedroom Temperature&m=Bedroom Temperature is #temp and Battery #batt&s=25&i=62

Payload is a combination of pushsafer parameter=value seperated by & to set up your push notification. You can ad more parameter if you need

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 11. Sep 2022, 20:31
by graham1963
Hi. Thanks for the reply.
I have tried what you suggested but cannot receive any pushsafer message at all. Not even the text.

url: https://www.pushsafer.com/api

The content options are auto, text/plain and application/json

I have tried both the auto and application/json.

k={myprivatekey}&d={00521CXXXX}&t=Bedroom Temperature&m=Bedroom Temperature is #temp and Battery #batt&s=25&i=62

The ID I have taken as the serial number from the info page.
I have used all of the brackets as shown.

Thanks for trying to help.
Graham

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 12. Sep 2022, 05:00
by admin
deviceid = are the ids next your device in your pushsafer dashboard

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 12. Sep 2022, 12:29
by graham1963
Hi. Thanks once again for the reply.

I have entered the following:

url: https://www.pushsafer.com/api

The content options are application/json


k={myprivatekey}&d={20XXX}&t=Bedroom Temperature&m=Bedroom Temperature is #temp and Battery #batt&s=25&i=62

The ID I have taken from the dashboard.
I have used all of the brackets as shown.

No message is coming through.

Thanks for trying to help.
Graham

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 12. Sep 2022, 13:31
by admin
looks good so far!

Try content-type auto or text/plain not application/json

Is there any log file?

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 12. Sep 2022, 15:23
by graham1963
Hi. Thanks

There does not appear to be any log file.
I have tried both auto and text/plain, but no transmission of message.

Do I need a ? after 'api' in the url?

I did reach out to the Thingsonedge folks, but no joy from them.

Thanks for trying
Graham

Re: Pushsafer and ThingsonEdge Cricket Board

Posted: 12. Sep 2022, 17:24
by admin
Hi,

please try to reach TOE by Twitter or Facebook.
Ask them it it is possible to send post data application/x-www-form-urlencoded!

Kevin