Go to advanced search

by ImagineZA
Fri May 03, 2019 10:10 am
Forum: Python
Topic: Python + JSON, how to create a good log file for diagnostics
Replies: 5
Views: 302

Re: Python + JSON, how to create a good log file for diagnostics

Thanks Ayden,

Will use a combination of the built in Python Logging as well as the print for quick checks using journactl.

Cheers,
by ImagineZA
Fri May 03, 2019 7:51 am
Forum: Python
Topic: Python + JSON, how to create a good log file for diagnostics
Replies: 5
Views: 302

Re: Python + JSON, how to create a good log file for diagnostics

Do you run this as a systemd service? If so, just add print() wherever (e.g. for each loop run). You can read the logs via journalctl. Your write to the log file should open the file with mode "a", not "w". Mode "w" will truncate the file each time. Regards Aydan So anywhere a print() appears in th...
by ImagineZA
Thu May 02, 2019 4:56 am
Forum: Python
Topic: Python + JSON, how to create a good log file for diagnostics
Replies: 5
Views: 302

Python + JSON, how to create a good log file for diagnostics

Hey Guys, I have a piece of Python Code pulling data from an API and then saving it to a database in MySQL. The Code works perfectly well enough, however I noticed that my Pi Disconnected from the WiFi and the code has failed since then. I have the python code running as a service, which has not sto...
by ImagineZA
Wed Apr 24, 2019 5:35 am
Forum: Automation, sensing and robotics
Topic: [SOLVED] how to get temperature values from internet?
Replies: 8
Views: 11861

Re: [SOLVED] how to get temperature values from internet?

Hey @DougieLawson, I was hoping you could expand on the below: The same bit of python using forecastio #!/usr/bin/python3 from urllib.request import urlopen import json apikey="api_key_redacted" # get a key from https://developer.forecast.io/register # Latitude & longitude - current values are centr...
by ImagineZA
Fri Mar 29, 2019 5:44 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 3752

Re: Running two different OS at the same time

So the best option/only option supplied would be to double up on the Pi.
by ImagineZA
Thu Mar 28, 2019 11:00 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 3752

Re: Running two different OS at the same time

I also read that the Pi4 will have better hardware and a possible Android GO official OS:

https://www.linux.com/blog/2019/2/new-p ... android-pi
by ImagineZA
Thu Mar 28, 2019 8:46 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 3752

Re: Running two different OS at the same time

I have had a squiz and they do have posts about how the "demo-ed" an ARM version on a Pi at some recent IoT/EDGE Expo, but nothing in full release yet, so was curious to see if there was something similar. Link to the VMWare Blog on ESXI 6.8 on RPI (if anyone else is interested): https://vinfrastruc...
by ImagineZA
Thu Mar 28, 2019 8:23 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 3752

Re: Running two different OS at the same time

I assume running both on an ESXI type OS would be the way to do it?

I was thinking about getting another Pi to do the job, but wanted to see if it was possible, the Pi is pretty much a tinker toy, so trying these things out is always a win for me, even if they fail.

Cheers,
by ImagineZA
Thu Mar 28, 2019 8:04 am
Forum: Other
Topic: Running two different OS at the same time
Replies: 19
Views: 3752

Running two different OS at the same time

Hey Guys, I was wondering if it would be possible to simultaneously run two different OS builds on the Pi at the same time. More specifically, Raspbian and an Android OS, like Emteria. The reason behind it: I'm currently using the Pi with Raspbian to "monitor" a few things around the house, Digital ...
by ImagineZA
Wed Oct 24, 2018 10:34 am
Forum: Beginners
Topic: RGB LED Hat Not lighting up
Replies: 5
Views: 403

Re: RGB LED Hat Not lighting up

I have asked Waveshare for some support, however their reply times are about 4 days between emails
by ImagineZA
Wed Oct 24, 2018 9:57 am
Forum: Beginners
Topic: RGB LED Hat Not lighting up
Replies: 5
Views: 403

Re: RGB LED Hat Not lighting up

Hey pcmanbob, Good idea, thanks, The Wiki: https://www.waveshare.com/wiki/RGB_LED_HAT The Hardware: https://www.waveshare.com/product/rgb-led-hat.htm The software is just some demo scripts that are linked at the bottom of their wiki, basically the original rpi_ws281x code: https://github.com/jgarff/...
by ImagineZA
Wed Oct 24, 2018 7:52 am
Forum: Beginners
Topic: Test the GPIO PWM Pin 18
Replies: 1
Views: 256

Test the GPIO PWM Pin 18

Hi Guys, Is there a way to test if the GPIO Pin 18 is working as PWM as expected? I am trying to run an LED pHat off the Pi but nothing is happening, so I am trying to pinpoint what the issue could be. I'm using the software straight from the site, no edits, so it can't be a software issue just yet....
by ImagineZA
Wed Oct 24, 2018 7:45 am
Forum: Beginners
Topic: RGB LED Hat Not lighting up
Replies: 5
Views: 403

Re: RGB LED Hat Not lighting up

Hey Guys,

No advice here?

I have tried re-installing the libraries from the WIki, still nothing.

Is there a way I can test that Pin 18 is functioning as expected?
by ImagineZA
Mon Oct 15, 2018 9:54 am
Forum: Beginners
Topic: The Pi and its GPIO Pins
Replies: 8
Views: 615

Re: The Pi and its GPIO Pins

I forgot about the PiZero,

Thanks, something to look in to
by ImagineZA
Mon Oct 15, 2018 8:15 am
Forum: Beginners
Topic: The Pi and its GPIO Pins
Replies: 8
Views: 615

Re: The Pi and its GPIO Pins

Hey Guys, I already have one of those Clone boards attached, but scotty101 is right, I was looking for a way to have more pins rather than just cloning them. I'm trying to build and code my own home monitoring system, Digital IO sensors (door etc) Temperature, humidity, a few things like that, possi...
by ImagineZA
Thu Oct 11, 2018 7:40 pm
Forum: Beginners
Topic: The Pi and its GPIO Pins
Replies: 8
Views: 615

Re: The Pi and its GPIO Pins

Thanks Scotty,

So the MOSI, MISO and Clock pins can be utilized by multiple devices as long and as long as the CS lines are different, all should be well?

Are there expansion boards that can double/triple the amount of these pins? Not just clone them but essentially have a 120 Pin Pi?

Cheers,
by ImagineZA
Thu Oct 11, 2018 1:48 pm
Forum: Beginners
Topic: The Pi and its GPIO Pins
Replies: 8
Views: 615

The Pi and its GPIO Pins

Hello, New to Pi here, Just wanted to confirm something with regards to the GPIO Pins on the PI, are we only allowed to use each pin once? For example: I have an e-ink display using pins and I'd like to attached an LCD, which from what I have read uses some of the same pins. Would it be possible for...
by ImagineZA
Thu Oct 11, 2018 10:19 am
Forum: Beginners
Topic: RGB LED Hat Not lighting up
Replies: 5
Views: 403

RGB LED Hat Not lighting up

Hey Guys, Pretty new to the Pi game, I have a PI 3 setup with a UPS PIco, working 100%. I stacked on a RGB LED Hat, the WaveShare half hat version and am trying to get the LEDs, to trigger, however nothing happens. I have checked using gpio readall that pin 18 (which i understand is the comms pin fo...

Go to advanced search