Closed Paku- closed 8 years ago
Changed idea to Gnokii using mySQL as backend database.
I'm stuck on smsd crashing all the time ...
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)
What does that mean?
The problem is that my Pi (B+) is almost dead after all that stuff installed.
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 ...
Lighttpd helped a lot, CPU is cooled now, but the configuration is a little broken have to dig in deeper. More here #12
The GPIOServer script does run constantly, I am not sure how this can be resolved.
pls have a look at Pyton API for Gammu
could be we can use it as an interface
It looks okay to me, but the question is can you get it to work with this project?
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
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 ...
I am not sure about that, you may have to see if they have any help documents available, possibly forums or irc.
Got test transmission with phone ... going good
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 ....
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 ...
You should be able to add this functionality to the config page at this time.
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)
Config database is implemented. Ball is in your court to implement this if you are still interested.
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
According to our talks will try to implement SMSs using Gammu.