xbmc and python - Raspberry Pi Q&A, Help & Troubleshooting

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.

Related

[.NET] will i ever be able to use it?

ive been messing around with VB.net lately, and was kinda wondering if i could make an app for my phone (Hero CDMA) with it.
visual basic I don't think so. Android is mostly in java, but I believe I read somewhere that you can use c++ now. But not VB
There's an android mono project, but I think its still a ways off from being stable enough to do any serious work in.
www {dot} koushikdutta {dot} com/search/label/Mono
(replace the {dot}s with .)
I don't think koush has done much for MONO .Net on Android in a while. He's been off on Clockwork stuff. But I don't think it will happen with a good stable version any time soon.
If I where you and you really want to write apps for the phone, take your VB skillz and look at a C# project. Then look at Java. C# is a bastardizaion of Java and C - so you could at least get a fell for it with C#.
However, you could do the SMART thing, drop VB in all and Check out JAVA on its own. It's a good language if you need your program to run on your phone, bluray player, mp3 player, radio, blender, Coffee pot, and Margarita machine.
I like Java ok, but I am a bigger fan of C++ - its where you really need to start if you want to be a programmer in the long term.

Need help for merging python programs

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.

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