Go to advanced search

by QuasiMojo
Wed Jan 30, 2019 5:08 pm
Forum: Advanced users
Topic: Raspberry Pi as a stand alone webserver without internet access
Replies: 3
Views: 347

Re: Raspberry Pi as a stand alone webserver without internet access

That is why I asked the question, I don't know how to setup a pi as an access point.
by QuasiMojo
Wed Jan 30, 2019 4:55 pm
Forum: Advanced users
Topic: Raspberry Pi as a stand alone webserver without internet access
Replies: 3
Views: 347

Raspberry Pi as a stand alone webserver without internet access

I have a project that involves a cell phone, raspberry pi and a dirt bike. The cellphone uses a browser to connect to the pi to receive data from sensors on the bike through wifi. I have the framework laid out and everything is working fine except one thing, the raspberry pi needs to be connected to...
by QuasiMojo
Mon Oct 22, 2018 5:31 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

Re: PHP web interface to execute python script

The solution I went with was Websockets and NGINX. I use PHP to query MariaDB and other page functions. Websockets communicates with a python scripts that spits back status indications of the machine's operations. Websockets are also used to control the machine.
by QuasiMojo
Wed Aug 01, 2018 8:52 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

Re: PHP web interface to execute python script

Well that makes two of us lol. What I know is that it is a python based framework for building web apps. In the meantime I am giving cherrypy a go and will report back. CherryPy is supposed to allow me to change headers so I can maintain a persistent connection. Thanks for your help.
by QuasiMojo
Wed Aug 01, 2018 8:22 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

Re: PHP web interface to execute python script

I have MariaDB/MySQL installed on the Pi and have no problems accessing it with python. My background is PHP/MySQL so it was a walk in the park transitioning to python. Well, sort of. Python has its quirks but has been admirable in doing what we need out of the machine. Would Django meet my needs re...
by QuasiMojo
Wed Aug 01, 2018 7:02 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

Re: PHP web interface to execute python script

I am using jQuery to display the result of the python script. I've been using jQuery for years and am quite familiar with it. Simple python scripts that finish quickly work fine ie; hello world. I have been tasked with developing a web interface that can send commands to the machine we are building ...
by QuasiMojo
Wed Aug 01, 2018 2:07 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

Re: PHP web interface to execute python script

Thanks for the response Dougie. I have seen streaming text comments on live YouTube videos that suggest what I want to accomplish is possible. Digging deeper into the subject, I learned that the CherryPy framework can facilitate HTTP chunked transfer encoding https://en.wikipedia.org/wiki/Chunked_tr...
by QuasiMojo
Tue Jul 31, 2018 7:19 pm
Forum: General programming discussion
Topic: PHP web interface to execute python script
Replies: 12
Views: 11909

PHP web interface to execute python script

I have been able to execute a simple Python script with PHP. test.py is a hello world script. However, I want to execute a much more complex Python script that requires arguments and a lot of dependencies (st.py imports both custom and native modules). All the files have been made executable and add...

Go to advanced search