Need help for merging python programs - Raspberry Pi Q&A, Help & Troubleshooting

I was doing my first raspberry pi electronic project. I choosed the adafruits Google docs logging project for a start. The project was a success and I obtained a complete output. My problem is , when I looked into the python program provided by adafruit (got it from github) it is calling other small programs. So I looked one of the called programs and it again calls other program.
I want to write a complete program that includes all the necessary things ie a stand alone version.
I want to write it in python 2. Also use a gpio pin 5. My model of pi is raspberry pi 2 model b.
I don't know whether I can include driver in my program. But if it is possible , I also want to include the driver too, please help me.

Related

Source code editor on the go with your Android Phone!

Hello, i want to ask if there is any program availiable for android phones like notepad++ for pc where i can write code for programming languages. Compiling them i know it's not possible but i want an app for writing the code while i am away from my pc.
Even though I don't agree with notepad++ (I am a linux user, but I always thought it was terrible) I would like this too.
I have spent some time looking and have yet to find anything that will do this, so I have to ssh into our development server and then use nano. It works for small fixes, which is the only thing you would really want to do on your android.
yeah i also would really like to see this so i can be programming while at work and school when i'm on the go. I've recently started learning to develop for android maybe this would make a good project.
i believe some roms have gedit or nano included so you could use that
Check out our touchqode source code editor for Android at touchqode dot com (forum does not allow us to post link)
It features syntax highlighting, code suggestions (autocomplete) and incremental search. We support Java (most mature), Python, C++, C# and Ruby (partial support).
We are eager to hear some feedback.
We just release Codeanywhere for Android, try it out I think this my be to your linking.
Just search Codeanywhere in the Android Market!
Let us know what you think
Just to let you know... Codeanywhere works but stops showing code at line 52 (consistently, doesn't depend on file type) on my Asus Eee Pad Transformer (16GB) w/ dock.
You can also try DroidEdit: https://market.android.com/details?id=com.aor.droidedit

xbmc and python

Hey,
my raspberry pi is just arrived and setup with pre installed xbmc (openelec)
i was searching the web how about to make my own add-on, python basic
but i am stuck, i know how to make a python script but how do i put it on my raspi to run it?
has some one a good tutorial how to make one, it is a new world for me
my language are only PHP,HTML and some of java, so python is new to me.

Raspberry Pi for single purpose without display

I love raspberry pi and I made many programs in Python. One of them is a cool GPIO robot controlling program. But I want to use my pi without any display and I also want my pi to run that specific program when it is powered.
I mean without booting all that Raspbian os and all that.
Is that possible.
If yes then please let me know
Thanks.
Hi! Yes, you could burn the lite version of raspbian on your sdcard. The lite version just has the basic stuff without "fancy" extras! Once booted up, write or copy your script to your pi, to a location you remember and start it at boot with the correct entry in the rc.local file!
Example line: python /home/pi/example_dir/YOUR_SCRIPT.py
I hope i could help!

Turn on/off light using mysql on seperate server

Hi there, I am new to Raspberry PI and I am looking for a way in which I can turn on and off a light using MySQL and a web interface which will be hosted on a separate machine since I eventually want to use more than one RPI. I have searched online and can only find servers being run on the same RPI or not using MYSQL at all. Is there any tutorials out there that could send me in the right direction? If so could someone point me to them or give me some information regarding this?
Looks like you are looking for MySQL server on one RPI and web interface (Apache most likely) on another.
I would go with Apache and php + MySQL libraries
Mysqli_connect and mysqli_query is what you are looking for from php side of things.
Setup Mysql account on one pi, grant all applicable permissions for 'user'@'2nd-pi-ip' (select + insert / update look like all you might need for 'web-interface' user)
Add Mysql port pass on firewall if applicable.
Write php website on another RPI and use mysqli_connnect and mysqli_query to operate on Mysql.
Google for LAMP install (Linux Apache Mysql Php) package for guidance.
You can get whole package to be installed in one run or guide to install one by one - install as required on one pi or the other

Raspberry pi 3 Model B with some apps

Hello, I need some help!
I have a raspberry pi 3 model, with the raspbian OS installed, and i'm trying to make GUI menu with some buttons, and when i click it will start applications installed on the raspbian, like Kodi, Libre Office and others or a page browser.
But the problem is that I can't make it. I already tried the Glade and the Python but that doesn't allow me to do what I really want.
Does anyone know such a program?
Thanks
Maybe you could try with MonoDevelop. It should be easy to start making GUI apps. Install it (look here) and make a new GTK# Application

Categories

Resources