Go to advanced search

by tpylkko
Tue Jul 04, 2017 6:02 am
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

i dont think i understand what you mean Sorry, I'll explain a bit better. In Linux operating systems you can automatically start programs in many ways. One of these many ways is via the desktop, so that when the graphical interface launches it also starts those other programs. This is good when you...
by tpylkko
Mon Jul 03, 2017 11:01 am
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

I think it sounds like a good idea to start the mqtt as a background system service and run the script autostarted from the desktop, since then the script will run with the pi user and have the same session and environment as when it is run manually. But it will not work when /if you are using a Ras...
by tpylkko
Sat Jul 01, 2017 8:00 pm
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

Ok. I thought you maybe dismissed the suggestion because you perceived it to be 'not good'. And was wondering if you had d some reasoning for it
by tpylkko
Sat Jul 01, 2017 7:48 pm
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

komarek wrote:
tpylkko wrote:Do you mean that you don't know what a user service is?

See this for example, then:
https://wiki.archlinux.org/index.php/Systemd/User
i never used that
Why?
by tpylkko
Sat Jul 01, 2017 3:37 pm
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

Do you mean that you don't know what a user service is?

See this for example, then:
https://wiki.archlinux.org/index.php/Systemd/User
by tpylkko
Sat Jul 01, 2017 2:00 pm
Forum: General discussion
Topic: python script at startup
Replies: 81
Views: 10018

Re: python script at startup

My bet is that your script requires session data, which is not available for a systemd system service. Printing to Log or launching a file does not require a user session, but maybe the auth stuff in your Python does? Have you tried a user service instead of the system one? IIRC, this changed in som...
by tpylkko
Sun Jun 25, 2017 8:15 am
Forum: Beginners
Topic: Accessing the Pi's CUPS web interface from another computer
Replies: 4
Views: 3185

Re: Accessing the Pi's CUPS web interface from another compu

But have you tried accessing the web server with the ip in order to rule out a name resolution problem?
by tpylkko
Sat Jun 24, 2017 7:32 pm
Forum: Beginners
Topic: Accessing the Pi's CUPS web interface from another computer
Replies: 4
Views: 3185

Re: Accessing the Pi's CUPS web interface from another compu

notice that you are using two distinct domain names for the box. which one is it? maybe use the ip address instead, if you don't know. Or am I misundertanding your setup? It appears that you have a rpi with name .local but you are trying to access .lan. If you are using pi3.local then use http://pi3...
by tpylkko
Mon Jun 12, 2017 5:40 am
Forum: General discussion
Topic: Is Python the only smart choice for micro-controllers?
Replies: 25
Views: 3690

Re: Is Python the only smart choice for micro-controllers?

Not only is Python not the only smart choice for micro-controllers it is a mind numbingly bad choice. MicroPython is quickly making its mark. Don't end up on the wrong side of history. I'm not sure that makes it a good choice, MicoPython like Arduino is probably good at getting beginners going (I'v...
by tpylkko
Sat May 27, 2017 6:44 am
Forum: Beginners
Topic: Can data be sent through GPIO?
Replies: 4
Views: 563

Re: Can data be sent through GPIO?

The rain gauge (or any other sensor) will output its data through an interface its designers thought most useful. If you know - or can find out - what that interface that is, you can program the Pi to accept that and use the data. You may find that it uses one of the more common interfaces - I2C, S...
by tpylkko
Thu May 25, 2017 8:53 pm
Forum: Off topic discussion
Topic: RISC-V Arduino is here.
Replies: 9
Views: 1796

Re: RISC-V Arduino is here.

I'm really pleased to see a RISC V board released. However I'm wondering about the sanity of the Cinque. That board has a ESP32 on it. The ESP32 contains two 32 bit cores running at 240MHz, plus half a megabyte of RAM, plus 16 MByte flash, plus 32 GPIO and a ton of other stuff. Besides the wireless...
by tpylkko
Tue May 23, 2017 8:12 am
Forum: General discussion
Topic: Is the Raspberry Pi a good ePaper platform?
Replies: 13
Views: 2959

Re: Is the Raspberry Pi a good ePaper platform?

Okay, let me clear that up a bit. What you are talking about is the UNO v.s. something like the 101. No exactly. What I was saying is that CarlRJ's claim that Arduino products are baremetal code running microcontroller's and do not have realtime OS's is not true anymore. But maybe this could be dro...
by tpylkko
Fri May 19, 2017 6:38 pm
Forum: General discussion
Topic: I2S audio data word length (16 or 24 bit?)
Replies: 2
Views: 587

Re: I2S audio data word length (16 or 24 bit?)

why? would that not depend on the DMA controller?
by tpylkko
Thu May 18, 2017 7:40 pm
Forum: General discussion
Topic: Is the Raspberry Pi a good ePaper platform?
Replies: 13
Views: 2959

Re: Is the Raspberry Pi a good ePaper platform?

Not sure what you mean with them not being "true Arduinos". But they are official Arduino AG designed and recognized projects. Actually I believe they consider the real (old) 8-bit avr's "legacy" as their own shop appers to not have them (although since the license is open anyone can make one and yo...
by tpylkko
Tue May 16, 2017 9:48 am
Forum: General discussion
Topic: Is the Raspberry Pi a good ePaper platform?
Replies: 13
Views: 2959

Re: Is the Raspberry Pi a good ePaper platform?

I think that the RPi is not a particularly good ePaper platform. Mainly because ePaper are slow (refresh latency) and low power, and as such are perfect for controller devices that sleep much and update the screen with low frequency. Like something that fetches weather/stock/whatever data once an ho...
by tpylkko
Thu May 04, 2017 3:40 pm
Forum: Automation, sensing and robotics
Topic: Temperture and Humidity Web Monitor
Replies: 4
Views: 5669

Re: Temperture and Humidity Web Monitor

In a way, a much more easier and eloquent (but also more common now) solution is to send that data with MQTT to a server like mostquitto or a cloud. Then you can plot the data with any of the already existing applications for phones, browsers whatever. But this does look nice for when you don't a bu...
by tpylkko
Mon Apr 24, 2017 9:14 pm
Forum: Advanced users
Topic: Auto poweroff when power bank low?
Replies: 6
Views: 1905

Re: Auto poweroff when power bank low?

and then there is also a whole bunch of workarounds for this problem and vendors at various pi-selling shops that sell specialized hardware to do ready-made.
by tpylkko
Fri Apr 21, 2017 2:19 pm
Forum: General discussion
Topic: So Many Languages, so little Time
Replies: 28
Views: 3817

Re: So Many Languages, so little Time

Luckily there is considerable overlap in various languages. If you are thinking about what language is the best being able to do as many things as possible and you are not working in some professional environment where you have to use specific things, then Python. Maybe C if you are interested in mi...
by tpylkko
Thu Apr 13, 2017 8:00 pm
Forum: Other projects
Topic: Turn on and off your PC with a raspberrypi
Replies: 30
Views: 16892

Re: Turn on and off your PC with a raspberrypi

the pi could also automatically send a shutdown command (to shutdown gracefully) and control a hardware relay to fully unplug the computer and later turn it on.
by tpylkko
Thu Apr 13, 2017 5:32 am
Forum: Other projects
Topic: Turn on and off your PC with a raspberrypi
Replies: 30
Views: 16892

Re: Turn on and off your PC with a raspberrypi

If you don't say why you want to do this, it is harder to answer your question. There are a million ways it could be done. For example, let's say you want the pi to do it because you can automate the pi and keep it on 24/7 due to its low power usage. Then you could have a .timer on the RPI and have ...
by tpylkko
Thu Apr 13, 2017 5:25 am
Forum: Beginners
Topic: Can the pi run Debian with gnome 3?
Replies: 13
Views: 7078

Re: Can the pi run Debian with gnome 3?

Just try it, then you will understand what I mean. The answer to the question is: yes KDE can be installed.
by tpylkko
Thu Apr 13, 2017 5:20 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.9
Replies: 289
Views: 108772

Re: Moving Linux kernel to 4.9

I like the way it works now. I just think the RPF folks should remove rpi-update so that folks have to positively do something (and hopefully think about it) to get rpi-update running. Then apt-get install rpi-update can give them the details of why they really won't want to run rpi-update. In case...
by tpylkko
Thu Apr 13, 2017 5:15 am
Forum: Advanced users
Topic: Run Python script at startup
Replies: 1
Views: 484

Re: Run Python script at startup

There are many ways to run a python script at startup. The way I have been doing it is by creating a .service file with where I send a command string to the python interpreter. Then I use a .timer file to start it at boot. The problem with printing a text to the display, is though, that where will y...
by tpylkko
Wed Apr 12, 2017 7:10 pm
Forum: Other projects
Topic: Turn on and off your PC with a raspberrypi
Replies: 30
Views: 16892

Re: Turn on and off your PC with a raspberrypi

why would you ever want to do this? why would you not just 1) turn of the pc from the switch, or 2) have it turn itself off or 3) serve a web page form the pc that allows you to turn it off?
by tpylkko
Wed Apr 12, 2017 7:30 am
Forum: Beginners
Topic: Can the pi run Debian with gnome 3?
Replies: 13
Views: 7078

Re: Can the pi run Debian with gnome 3?

Now with the Pi 3 with 1GB ram and 1.2ghz default clock is it possible I wonder if you are trying to state that it is possible or whether you are trying to write a question? Any which way, the fact is that you might be able to get GNOME3 started on a pi, but it will be unusable. Right now I am runn...

Go to advanced search