Go to advanced search

by prwiley
Mon Jul 01, 2019 3:16 pm
Forum: Other projects
Topic: Screenly OSE -- Digital Signage for the Raspberry Pi
Replies: 1100
Views: 369493

Re: Screenly OSE -- Digital Signage for the Raspberry Pi

I tried to install the OSE version today. On restart after the installation I see the "Welcome to the Raspberry Pi Desktop" image with the pi logo. in the lower left I see "rc-local.service" and then in the upper left the pi boots into the command line asking for my user name and password. When I pr...
by prwiley
Sun May 19, 2019 5:23 pm
Forum: Python
Topic: Python program throws error when starting as service. Why?
Replies: 4
Views: 288

Re: Python program throws error when starting as service. Why?

After some more searching I found this thread at StackExchnage: https://stackoverflow.com/questions/35641414/python-import-of-local-module-failing-when-run-as-systemd-systemctl-service Per the advice there are updated my Unit file as follows: [Unit] Description=my.service [Service] WorkingDirectory=...
by prwiley
Sun May 19, 2019 3:28 pm
Forum: Python
Topic: Python program throws error when starting as service. Why?
Replies: 4
Views: 288

Re: Python program throws error when starting as service. Why?

When I ps -ef | grep python the owner is pi

I note that a log file the program creates is put in /home/pi/ when run from the command line and in /home/pi/programDir/ when run from IDLE

Is the fix just providing the right path for the import statement? No sure I quite know how to find it.
by prwiley
Sun May 19, 2019 3:04 pm
Forum: Python
Topic: Python program throws error when starting as service. Why?
Replies: 4
Views: 288

Python program throws error when starting as service. Why?

I have a program I have setup a Unit file for so that it will run as a service on startup. The program runs fine from the command line, however it fails to run on startup. When I check the status of the service, I see that has it failed to load. I see the failure is the result of: import paho.mqtt.c...
by prwiley
Thu Jan 17, 2019 4:13 pm
Forum: Python
Topic: MQTT and Python in 2019
Replies: 8
Views: 1146

Re: MQTT and Python in 2019

The "trick" with installing mosquitto on a Pi is to ignore everything on T'internet and start with fresh Raspbian install and simply type in sudo apt-get install mosquitto mosquitto-clients which will install and run a mosquitto broker service on your Pi listening out on port 1883 If you want to wr...
by prwiley
Wed Jan 16, 2019 7:56 pm
Forum: Python
Topic: MQTT and Python in 2019
Replies: 8
Views: 1146

MQTT and Python in 2019

I have been trying to install mosquitto on my raspberry pi and have run into the installation problems well documented elsewhere on this forum. I was following these instructions: https://www.switchdoc.com/2018/02/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi/ Bottom line is that mo...
by prwiley
Sat Aug 04, 2018 12:35 pm
Forum: Networking and servers
Topic: Can Pi respond via MQTT while OMXPlayer is playing?
Replies: 1
Views: 209

Re: Can Pi respond via MQTT while OMXPlayer is playing?

Well it turns out there's no real pi/mqtt issue here. After some careful debugging I found out that the reason why I thought I was not getting responses back from the pi via mqtt was due to the fact that my iOS app was not posting received responses on its main thread. This meant mqtt responses were...
by prwiley
Fri Aug 03, 2018 6:44 pm
Forum: Networking and servers
Topic: Can Pi respond via MQTT while OMXPlayer is playing?
Replies: 1
Views: 209

Can Pi respond via MQTT while OMXPlayer is playing?

I have written an iOS app that communicates with a python script running on a pi via mqtt. The python script plays videos via an instance of OMXPlayer and automatically sends information about the video to the iOS app. I am curious to know wether there is a way for the Python script/mqtt on the pi t...
by prwiley
Thu Jul 26, 2018 1:39 pm
Forum: Networking and servers
Topic: Cannot get multiple iOS mqtt clients to connect to Pi Broker
Replies: 2
Views: 271

Re: Cannot get multiple iOS mqtt clients to connect to Pi Broker

It was the client id issue. Just didn't think of it.

I wrote some code to give each device its own id when connecting to the broker and all worked it should.
by prwiley
Wed Jul 25, 2018 7:16 pm
Forum: Networking and servers
Topic: Cannot get multiple iOS mqtt clients to connect to Pi Broker
Replies: 2
Views: 271

Cannot get multiple iOS mqtt clients to connect to Pi Broker

I am working a project that relies on connecting iOS devices (via CocoaMQTT) to and mqtt server/broker running on a Pi. With one iOS device things work just as they should. When I try to connect with a second iOS device, things fall apart. The second device attempts to connect and then immediately d...
by prwiley
Tue Jun 19, 2018 2:12 pm
Forum: Automation, sensing and robotics
Topic: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT
Replies: 66
Views: 39188

Re: [GUIDE] Communicate between iOS and Raspberry Pi using MQTT

I get to the step git clone https://github.com/eclipse/mosquitto.gi t and get [email protected]:/ $ sudo git clone https://github.com/eclipse/mosquitto.git Cloning into 'mosquitto'... remote: Counting objects: 7380, done. remote: Compressing objects: 100% (4/4), done. remote: Total 7380 (delta 0), reused...

Go to advanced search