linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

SMS service implementation. #7

Closed Paku- closed 8 years ago

Paku- commented 9 years ago

According to our talks will try to implement SMSs using Gammu.

Paku- commented 9 years ago

Changed idea to Gnokii using mySQL as backend database.

http://wiki.gnokii.org/index.php/SMSD

Paku- commented 9 years ago

I'm stuck on smsd crashing all the time ...

Paku- commented 9 years ago

Finally went back to gammu and it's working using mySql backend. The problem is that my Pi (B+) is almost dead after all that stuff installed.

The idea is as follow:

On SMS receive we can spawn the script using RunOnReceive config directive http://wammu.eu/docs/manual/smsd/run.html#gammu-smsd-run (we need one more script to be called on sms arrival so we can analyse it and process further)

While we can inject new sms to be send using gammu-smsd-inject command http://wammu.eu/docs/manual/smsd/inject.html (this can be called from our GPIOServer script)

linwiz commented 9 years ago

What does that mean?

The problem is that my Pi (B+) is almost dead after all that stuff installed.

Paku- commented 9 years ago

80-100% CPU utilization load averages above 1 /all 3/ like 1.2-1.4

the biggest killer is our GPIOServer script :(

I'm on my way to remove apache2 and switching to lighttpd ...

Paku- commented 9 years ago

Lighttpd helped a lot, CPU is cooled now, but the configuration is a little broken have to dig in deeper. More here #12

linwiz commented 9 years ago

The GPIOServer script does run constantly, I am not sure how this can be resolved.

Paku- commented 9 years ago

pls have a look at Pyton API for Gammu

http://wammu.eu/python-gammu/

could be we can use it as an interface

linwiz commented 9 years ago

It looks okay to me, but the question is can you get it to work with this project?

Paku- commented 9 years ago

Trying to run gammu for last two days. Got older v1.31 running but it has a bug flooding logs with messages. Have just build newest sources and now fighting devices permissions etc. It will work but it's a pain to install (some complicated permissions issues - especially for phone device)

Yes you may learn pyton-gammu :)

Give me few hours more

Paku- commented 9 years ago

Need some poor Linux help ...

Newly installed execs seem to see OLD LibGammu.so library. But there is no such a file in the system. There is only new one .... compatible with current gammu. Is there any cache for libs ??? or what ... Have all proper links in /usr/local/lib ...etc

Edit: Found it ...

linwiz commented 9 years ago

I am not sure about that, you may have to see if they have any help documents available, possibly forums or irc.

Paku- commented 9 years ago

Got test transmission with phone ... going good

Paku- commented 9 years ago

Done ...working ...

Now we have to think over if we want to go further with bash scripts using idea given above: RunOnReceive config directive gammu-smsd-inject command

or use Python Gammu Libs ....

Paku- commented 9 years ago

Can create an account for you on my Pi to test pyton lib and gammu, but need to post the password at the safe way somehow ...

linwiz commented 9 years ago

You should be able to add this functionality to the config page at this time.

Paku- commented 9 years ago

First we have decide how the config will be kept. My idea is to keep config in the separate db table. Just one row with column for every configurable option. (idea given here #37)

linwiz commented 9 years ago

Config database is implemented. Ball is in your court to implement this if you are still interested.

Paku- commented 9 years ago

I am working on another approach for solution like this. It will cover SMS functionality but will be available not so fast as I am rewriting most of code.

Pzdr, Paweł


Od: Matthew Motzmailto:notifications@github.com Wysłano: ‎2015-‎01-‎22 09:48 Do: linwiz/Raspberry-Pi-Web-GPIOmailto:Raspberry-Pi-Web-GPIO@noreply.github.com DW: Pakumailto:pawel@4x4.org.pl Temat: Re: [Raspberry-Pi-Web-GPIO] SMS service implementation. (#7)

Config database is implemented. Ball is in your court to implement this if you are still interested.


Reply to this email directly or view it on GitHub: https://github.com/linwiz/Raspberry-Pi-Web-GPIO/issues/7#issuecomment-70987870