Go to advanced search

by jadro
Mon Jan 02, 2017 1:49 pm
Forum: General discussion
Topic: MQTT Subscription
Replies: 34
Views: 8448

Re: MQTT Subscription

Create a file /etc/mosquitto/conf.d/ws.conf port 1883 protocol mqtt listener 8883 protocol mqtt listener 9001 protocol websockets Does this configuration works both for out web and local network? I ask this because I have problem with router. My internet provider give me a new router and I configur...
by jadro
Fri Dec 30, 2016 12:12 pm
Forum: General discussion
Topic: Owncloud and Raspberry
Replies: 3
Views: 832

Re: Owncloud and Raspberry

This is also link to create ownCloud storage.
http://www.instructables.com/id/OwnClou ... /?ALLSTEPS
Jadro
by jadro
Fri Dec 30, 2016 11:07 am
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Hi, I try to do in Python and I did. In Python script, I put this piece of code to prevent same script to run if already running: ###### EXIT IF PROGRAM ALREADY RUNNING ############# import commands import os import sys def exit_if_already_running(): script_name = os.path.basename(__file__) l = comm...
by jadro
Fri Dec 30, 2016 9:13 am
Forum: General discussion
Topic: NO-IP expiredate updater
Replies: 9
Views: 3917

Re: NO-IP updater

:-( I put at the topic the code I found and then I change it to update NO-IP expiredate. But, this is not done when I start the py script. In original file that I found somewhere (I dont remember where I found it) the autor said that it does update expiredate... Is this possible to do, to update exp...
by jadro
Fri Dec 30, 2016 9:06 am
Forum: General discussion
Topic: NO-IP expiredate updater
Replies: 9
Views: 3917

Re: NO-IP updater

I use http://dnsomatic.com/ You can drive that with curl curl -s -o - --user myuserid:mypassword https://updates.dnsomatic.com/nic/update I've got DNSoMatic updating about six or seven other NO-IP, dyndns, freedns services and my Hurricane Electric IPv6 tunnel. Is this some kind of NO-IP automatic ...
by jadro
Thu Dec 29, 2016 8:42 pm
Forum: General discussion
Topic: NO-IP expiredate updater
Replies: 9
Views: 3917

NO-IP expiredate updater

Hi, i have found some python script and I modify it but it does not work how it should work. Does anybody create NO-IP updater sucessfully? My script is: import base64, urllib2 print "No-IP Updater \n" hostname = 'mysite.ddns.net' user, pswd = '[email protected].com', 'myPassword' noip_url = 'htt...
by jadro
Thu Dec 29, 2016 2:28 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Thanx, I will google it ;-)
by jadro
Thu Dec 29, 2016 12:45 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

DougieLawson wrote:The & in the bash script causes things to run as a non-terminating daemon task.
Ok, but how reboot works, what causes this running twice? Is this something that I can prevent? From python scripts? with some code that kills scripts if same is started?
by jadro
Thu Dec 29, 2016 10:52 am
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Hi, I have outer server with php script that send email when Raspberry python SensorController.py call url with urllib2 to that outer php script. That server has stop to work for couple of houres. That way I did not receive response. Now it works but with two processes on each py script... But I hav...
by jadro
Thu Dec 29, 2016 8:43 am
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

DougieLawson wrote:That will get started at boot up and closed at poweroff or reboot.
will this be shown in task manager as active processes?

and will scripts works if I have in each script main function:

Code: Select all

if __name__ == "__main___"
    main()
because my scripts are started but does not works as standalone running?
by jadro
Wed Dec 28, 2016 9:21 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

ok, here it is chmod 755. Reboot starts twice again. Is this maybe problem from task manager that just shows twice and scripts are started once?
by jadro
Wed Dec 28, 2016 8:37 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Works without sudo and with chmod 777.
But, task manager shows two processess for SensorController.py and two for temperatureController.py!?!?!? Why so?
And do I need to do CHMOD 777 anytime I put another py call to SH script?
by jadro
Wed Dec 28, 2016 7:43 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Do I need some special permissions or execute?
Thanx again, I go to do this immediately.
Jadro
by jadro
Wed Dec 28, 2016 7:23 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Re: Autostart

Write a shell script to do that stuff, run the shell script from the desktop file. I'am not familiar with linux commands or shell. And this way is so simple. Also why do you think you need sudo? But where to put shell script if I write it? How to call it and from where? I did not know that python c...
by jadro
Wed Dec 28, 2016 7:08 pm
Forum: General discussion
Topic: Autostart
Replies: 17
Views: 2293

Autostart

Hi, do I need to put AND simbol (&) at the end of the python call in desktop file myAutostartFile.desktop that exists in /home/pi/.config/autostart and have this code: [Desktop Entry] Type=Application Name=MyPiAutostart Exec=sudo python2 /home/pi/myPiConfig/checkGPIOstatus.py Exec=sudo python2 /home...
by jadro
Sun Dec 25, 2016 7:28 pm
Forum: General discussion
Topic: RPi-GPIO NOT WORKING plz HELP
Replies: 11
Views: 2365

Re: RPi-GPIO NOT WORKING plz HELP

see this link:
viewtopic.php?f=63&t=161652&p=1047766#p1047766
I follow this link and did my nodejs successfully.
Heater is main leader in this topic...

Jadro
by jadro
Sun Dec 25, 2016 6:57 pm
Forum: General discussion
Topic: RPi-GPIO NOT WORKING plz HELP
Replies: 11
Views: 2365

Re: RPi-GPIO NOT WORKING plz HELP

Heater, you are right, I have install version you suggest 0.32.0...
wget -qO- https://raw.githubusercontent.com/creat ... install.sh | bash
nvm install node
ednvm use node
...

Jadro
by jadro
Sun Dec 25, 2016 6:03 pm
Forum: General discussion
Topic: RPi-GPIO NOT WORKING plz HELP
Replies: 11
Views: 2365

Re: RPi-GPIO NOT WORKING plz HELP

nodeJs v0.10.29

Jadro
by jadro
Sun Dec 25, 2016 11:58 am
Forum: General discussion
Topic: RPi-GPIO NOT WORKING plz HELP
Replies: 11
Views: 2365

Re: RPi-GPIO NOT WORKING plz HELP

Try with wiringPi, I had similar issue... sudo apt-get update && sudo apt-get upgrade [email protected] ~ $ git clone git://git.drogon.net/wiringPi ... [email protected] ~ $ cd wiringPi [email protected] ~/wiringPi $ git pull origin [email protected] ~/wiringPi $ ./build ... [email protected] ~/wiringPi $ gpio rea...
by jadro
Fri Dec 23, 2016 12:14 pm
Forum: General discussion
Topic: MQTT Subscription
Replies: 34
Views: 8448

Re: MQTT Subscription

Dougie,

i create ws.config with content like you say and it works, I'am able to get data to online websocket page.

Thanx,
Jadro
by jadro
Fri Dec 23, 2016 7:57 am
Forum: General discussion
Topic: MQTT Subscription
Replies: 34
Views: 8448

Re: MQTT Subscription

You must install 1.4.10 (or later) the version you'll get with apt-get is too old.. I done the installation like this two weaks ago: sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key sudo apt-key add mosquitto-repo.gpg.key cd /etc/apt/sources.list.d/ sudo wget http://repo.mosquitto....
by jadro
Fri Dec 23, 2016 7:54 am
Forum: General discussion
Topic: SD Card duration
Replies: 16
Views: 10596

Re: SD Card duration

Thanx for youre experiences.
BackUp is mother off all.

Jadro
by jadro
Thu Dec 22, 2016 7:45 pm
Forum: General discussion
Topic: SD Card duration
Replies: 16
Views: 10596

SD Card duration

Hi, I have Raspberry Pi 3 for a last 9 months and every day my python and PHP scripts write to mysql database for many time per day. I have NGINX server on it. Is there limitation or is SD Card strong enough to work without problem for few years? Some people are talking about corrupting the SD card ...
by jadro
Thu Dec 22, 2016 7:33 pm
Forum: General discussion
Topic: MQTT Subscription
Replies: 34
Views: 8448

Re: MQTT Subscription

I found some explanations for configure Mosquitto websocket settings. But, before I remove and replace some config files, is there somebody to have done the same configuration as from this link: https://xperimentia.com/2015/08/20/installing-mosquitto-mqtt-broker-on-raspberry-pi-with-websockets/ I ha...
by jadro
Thu Dec 22, 2016 8:52 am
Forum: General discussion
Topic: MQTT Subscription
Replies: 34
Views: 8448

Re: MQTT Subscription

Does Mosquitto v 1.410 have websocket or I need to install websocket? If need to install, what is the best?

Jadro

Go to advanced search