Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-11-29 12:52:07

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

HTTP - Pushbullet - push message to mobile device

I would like to push a message to my mobile devices by means of the app Pushbullet.
But I have no idea how to deal with the access token and where to put the json string....

see Pushbullet - create push

Is it also possible to put a text string as message (body)?

Offline

#2 2016-11-29 16:19:20

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: HTTP - Pushbullet - push message to mobile device

Hi scoobsalamander,

thank you for your interesting question.
Unfortunately there is no way how to pass headers using HTTP function block yet. I wasn't able to pass the access_token directly in URL - the authentication fails. According to their docs it should be possible to include the access_token directly into URL similarly to HTTP Basic Auth (https://docs.pushbullet.com/#using-your-access-token) - it doesn't work for me. I asked them if I misunderstood something - will see what will they reply.

Anyway, we added headers support in HTTP block on our future feature list.

I will inform you about their answer.

Cheers, Tomas

Offline

#3 2016-11-29 16:36:16

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: HTTP - Pushbullet - push message to mobile device

Some temporary solution should be achievable by using EPC function block to call "curl" commands...

Offline

#4 2016-11-29 16:56:34

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: HTTP - Pushbullet - push message to mobile device

I was trying to use Node-red and the Node-red part is already working fine.

What is the best method to get data from REXcontrols to the Node-red logic engine on the Ras-pi?

Websocket? REST API? ....


(FYI : node-red-node-pushbullet)

Last edited by scoobsalamander (2016-11-29 16:57:32)

Offline

#5 2016-11-29 18:58:08

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: HTTP - Pushbullet - push message to mobile device

oops...websocket is not supported I guess, correct?

Once there was a function block RDCWS (Remote data connection - websocket server) which was going to be made available according the old documentation. But in the new version it seems to be removed.

Offline

#6 2016-11-30 11:11:57

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: HTTP - Pushbullet - push message to mobile device

That's good idea to use Node-red. Best way how to communicate with Rex Control System is using REST API. There is already an example in installation called Node-RED + OpenWeatherMap API example.

RDCWS is not supported any more - the development was stopped.

Cheers, Tomas

Offline

Board footer

Powered by FluxBB