Is it possible to send messages using pushingbox.com to android?

Begonnen von Lectere, 16 Januar 2013, 04:16:59

Vorheriges Thema - Nächstes Thema

Lectere

Sorry, my German is bit rusty, so I write in English.

I'm using a raspberry pi with a WiFi stick, and a serial cul connected to the serial port.

I have a fs20TK a fs20 doorbell switch, and I like to send a push notification to my android device. With my old arduino I was using pushingbox.com to send messages to my android notifry app.

Is it also possible to use fhem to launch push notifications to android/notifry?

Vielen dank fur ire hifle!
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

Lectere

SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

fiedel

Hi,

this should be no problem. Just make a little shell- bash- php- or whatever script wih these GETs or POSTs, that works into the linux- bash. Then setup your notify in fhem and call the shellscript like this:

{system("/path to your script/yourscript.sh")}

First try to enter this line in the fhem command field and press the enter key!

Note: The curly brackets you need also to try it into the fhem- command field. In the notify, it works this way:

define Doorbell_N notify fs20TK:on {system("/path to your script/yourscript.sh")}

Viel Erfolg!
FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423

Lectere

View more things, whats the best path to store your script, somewhare in the opt/fhem/ folder?

Also, what should be in the .sh script?

Vielen Dank Fiedel!


SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

fiedel

You could store it into "/usr/share/fhem/" (or what your FHEM- Modpath is).

With the second question, i cannot help you a lot. I do´nt know the pushingbox- API, but at least, in the script there must be the call or command, that you want to send to pushingbox.com. I´m not very familiar with scripts, so maybe someone else can help you more. However, here is a link with an example, that shows you roughly, what i mean:

http://tech.thejoestory.com/post/22796434169/pushingbox-com-web-service

Best regards

fiedel
FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423

fiedel

FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423

Lectere

Danke Fiedel!

I've got it working now!, I've placed the scripts in /opt/fhem/scripts.

I've just copied an existing .sh script, there needs to be something funny in the header to make it work.

Also you have to make sure, that the rights are correct. Otherwise they can't be executed.

Thanks a lot for your help!
SMSPassword redundant two-factor authentication for Netscaler, Vmware View, Cisco, Juniper, etc via SMS

http://www.smspassword.com

xypzo

Please help me out, this is excactly what I want to do.

I never wrote a .sh script in my life.

How would a simple .sh script look like for this request:

curl "http://api.pushingbox.com/pushingbox?devid=v0123456789ABCDE"

fiedel

Hi xypzo,

if you follow my last weblink above, you don´t need do write a script. Just try to understand what he shows and set it up the same way into fhem. Then you sould be able to send messages from fhem.
If you really need a sh.-script, better read a little linux beginners guide first, to learn how to manage files and folders, setup rights, owners an so on. And a little shellscript tutorial.
FeatureLevel: 6.1 auf Wyse N03D ; Deb. 11 ; Perl: v5.14.2 ; IO: HM-MOD-RPI-PCB + VCCU|CUL 868 V 1.66|LinkUSBi |TEK603
HM: SEC-SCO|SCI-3-FM|LC-SW4-PCB|ES-PMSW1-PL|RC-4-2|SEN-MDIR-O|SEC-WDS-2
CUL: HMS100TF|FS20 S4A-2 ; OWDevice: DS18S20|DS2401|DS2406|DS2423