LightMyPi Android App - Control GPIO without SSH and WebioPi wirelessly - Raspberry Pi Development

I want to share the project I was working on an android app to control all GPIO pins of Rapsberry Pi wirelessly from Android Phone without using SSH nor WebioPi nor port forwarding
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download from Google Play Store
play.google.com/store/apps/details?id=com.lightmypi
The app communicates with your Raspberry without using SSH nor WebIoPi
You need to install a web server, PHP handler and wiringPi and switch.php file on your raspberry to get this app working.
I have given a detailed guide on github along with switch.php file
github.com/juniorhero/raspberrypi2
Read more on Github
If you install Weaved on HTTP port 80, then you can access the GPIO pins from anywhere in the world using LightMyPi app
I am sure you will like this app, please try it and let me know if you face any difficulties :fingers-crossed:

Have you done more development on this?

Could you share Android App source code so we can hack as in our DIY project. Please.

I've followed the directions on github, however when I run the weaved-nixinstaller_1.2.13.bin I choose option 2 and it sets up port 80 OK but then it asks for my Weave email address and password. I gave it my email and invented a password, but then it says:
You are missing a valid session token and must be logged back in.
I also installed the Android app lightmypi, however there is no place to enter an email and password, so it's very confusing how the Android app is supposed to connect to my pi. Probably the issue is with the weaved-nixinstaller not finishing correctly.
I did some Google search and discover that I have to first create a Weaved account online, however they are not accepting new accounts, rather they direct me to setup an account at www dot remot3 dot it. What a run around.
Any help is appreciated, because I am so close to testing this all out.

Related

GNote/Android runs JAVA?

we are using a web-based program that needs java. was wondering if i could use Android/GNote to access the website so i dont need a full PC to lug around and visit the site.
the first time you visit the website, it will ask you to install JAVA. am just wondering if its compatible with any ANDROID browser. maybe chrome? or something else?
appreciate any input.
jeraldyne c",)
Give me the link and I will check your website for you.
From the browser settings:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
link HERE c",)
btw, no hablo español mi amigo!! ;-)
rangercaptain said:
Give me the link and I will check your website for you.
From the browser settings:
Click to expand...
Click to collapse
JavaSCRIPT != JAVA - javascript is a very specific subset designed for doing just a bit of flow control textual / dialog programming on web sites. Java uses semi-compiled byte code to create full stand-alone applications.
technically, yes, android supports Java, in fact, at the core of android is linux, which handles all of the hardware input/output stuff, but then right on top of linux is Dalvik which is a Java byte code virtual machine designed by google to be nice and lightweight as well as supplying additional features for tablets and phones specifically (touch screen support and such). so yes, android by nature of being android, can run java. the trick is weather or not the application that you're trying to run from the web site uses code that is fully supported by Dalvik.
unless someone more knowledgable than I would care to chime in, I would strongly simply recommend either borrowing a friend's phone / tablet for a few minutes and just test out the application for yourself and see how well it runs for you, or visit your nearest cellular phone store and try one of the store demos in the same capacity.
Good luck!
Upon my visit to your link Amiga:
I guess that about says it all.
Pushing the ok button just gave me the same message.
I'm pretty sure that android cannot run normal java applets. The JVM used oly has a certain subset of java capabilities.
Not a mobile site either, I'd guess.
there a workaround to this?
Upon opening the site I chose install and it auto downloaded a file but it could not run on my note. The other option was a button that I couldn't activate. Thats where the Java would be needed.

[APP]ISHARE][2.1+] Gidder - Git server for Android

Note : I'm just sharing the work of the XDA Member oliuf4e.Here's a little introduction by him :
oliuf4e said:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The project in GutHub: https://github.com/antoniy/gidder
Gidder is a Git server implementation for Android that works on top of a SSH server. Access your code anywhere anytime using your Android device.
Gidder is a unique product in that it combines two very complementary ideas. The distributed version control that Git provides and the mobility of any Android device. As a reasult, you can store your projects safely and conveniently in your pocket device and just as easy access them using any WiFi connection. It doesn't matter if you are on a business trip in a hotel, at the office or at home, you can always sync your work using your Android device.
What's the fun of something if you can't share if with anyone else? That's why Gidder provides multiple users that can access any repository they have permissions to. You might want a colleague to be able to just peek at your code - no worries, Gidder gives you the ability to separate permissions to Pull and Push&Pull permissions. So with a simple click you can assign read-only permission to anyone.
Features:
Git server over SSH for accessing your repositories.
Support Push, Pull, Fetch and Clone Git operations which is all you need to achieve successful distribution with Git.
User management - create, create from contact, edit, delete, activate/deactivate, set/remove permissions to repositories.
Repository management - create, edit, delete, activate/deactivate, set/remove permissions for users.
Dynamic DNS integration. A convinient way to use the system when working in different WiFi networks and having a different IP on your laptop. By using Dynamic DNS you can easily access a server without worrying if your Git remote have the correct IP for the current WiFi network. Currently supported providers are No-IP and DynDNS.
Auto update Dynamic DNS hostname when WiFi is On.
Manually update Dynamic DNS with an update button.
Autostart/Autostop server on WiFi On/Off.
Configure server port.
Enable/Disable status bar notifications.
Application widget for Start/Stop the server.
Click to expand...
Click to collapse
Original Thread - http://forum.xda-developers.com/showthread.php?t=1870470

Stable tutorial for first-timer to maintain an Essential PH-1?

Hello, I've never gone beyond entering developer mode on any of my phones, looking around carefully, then turning that mode off. I own two PH-1 phones, one is in full time service, and I would like to know of a tutorial / step-by-step to do what I need to do to maintain this phone with the images (ROMs?) that are being maintained and updated. I don't need the phone to do anything other-worldly, just keep it updated.
This is the only forum on here I'm allowed to post to, because I've been a listen-only member for a couple years but have never posted. I've just started using Ubunto 20.04 on a new laptop so I can get away from Windows, but I still have a Win7Pro laptop.
Thanks for your recommendations on how to get started -- safely started -- and how to learn what I need to learn.
Also, I just read some of the read-me-first stickys, and please allow this to also be my "Say Hi" email...
"MP"
PS -- I get a captcha, check it, get the green checkmark, but I see *no* image... I'm using firefox w/ NoScript (all scripts enabled for this tab), on an Ubuntu 20.04 laptop.
So no one cares to reply? Did anyone read it besides myself? Whiskeytangofoxtrot
@Messypotamia
If phone's Android OS isn't an A/B-partition-layout-system - what I believe because its Stock ROM is Android 7.1. - then updating a phone's Android requires phone's boot-loader is unlocked. This must get enabled within phone's Developer options - keyword: OEM unlock - what simply sets phone's unlock ability flag to 1 . Additionally it's necessary that ADB ( read: Android Debug Bridge ) gets enabled in phone's Developer options - keyword: USB debugging.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Simple Hello World for SMS Access without root?

This is my first time working with Kotlin or Android. I looking to get a very basic Hello World type thing started as a proof of concept of a future app, but need a little basic guidance.
I would like to be able to back up my SMS and my MMS messages. I have found that most applications focus on SMS only, which for me, leaves out many important messages.
I am just looking for a basic proof of concept that I can connect to that database located in the `/data/data/com.android.providers.telephony/mmssms.db` without being root.
I was able to, using a PC software BackupTrans, get a local copy of the db using USB debugging, and so I have all my queries written, but would like to know how to access that database, and for extra credit, it would be awesome if it isn't any extra effort to access the files at: `/data/user_de/0/com.android.providers.telephony/app_parts/` where the images and other multimedia files are at.
So as a for instance, I normally work in C#, so forgive me, if I wanted to run this query, how would I do so?
Code:
using (SqliteConnection DatabaseConnection = new SqliteConnection(string.Format(@"Data Source=D:\CodeStuff\MMS_Backup\part\mmssms.db")))
{
DatabaseConnection.Open();
SqliteCommand GetDataCommand =
new SqliteCommand(@"SELECT * FROM(
SELECT DISTINCT datetime(date, 'unixepoch','localtime') as msg_date , text as msg, cl as attachment , ""mms"" as type, msg_box as direction FROM part JOIN pdu ON pdu._id=part.mid
WHERE pdu.thread_id =1011
UNION
SELECT datetime(sms.date/1000, 'unixepoch','localtime') as msg_date ,body as msg, """" as attachment, ""sms"" as type, type as direction
FROM sms
WHERE sms.thread_id = 1011
)
WHERE attachment !=""0.smil"" AND attachment !=""smil.xml""
order by msg_date", DatabaseConnection);
var dbResults = GetDataCommand.ExecuteReader();
while (dbResults.Read()){
}
}
I would like to stay away from rooting the phone because if this works, I would like to make it more accessible to more people, and nobody wants the chance of data loss just to back things up
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For what it is worth, I have a Galaxy S10 with Android 11, build # RP1A.200720.012.G973USQU4FTLN

Alter the IR database to send other codes to the TV - Need help

Hey there.
I have since a few days the new ShieldTV remote with IR function and netflix button. Since yesterday I try to change the NvIRTuner.apk (com.nvidia.irtuner) or its database or the IR calls. Unfortunately without success so far.
The database is built very interesting. I'm talking about the O1R_UPDATE_19NOV20.sqlite here.
In the table M_Codes you can find all IR codes. Before the corresponding Java class determines the device which one has selected in the IR-AV-Toogle menu. In my case a LG TV with the id 1970. This Id can be seen in the setup.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here a Logcat excerpt, if I press my menu button to trigger the HDMI toggle:
07-11 13:37:30.050 4415 4601 D ShieldBluetoothIRInterface: *****REPORT*****0 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Good to see the actual IR_Code that is taken, or its alias:
INPUT SCROLL
What I have tried so far:​-I replaced all IR codes in O1R_UPDATE_19NOV20.sqlite with Channel_UP and then moved this db to /data/data/com.nvidia.irtuner/databases with su-rights.
-> Unfortunately the system app com.nvidia.irtuner seems to read the db inital only once. I can't get it to read my db. I don't understand why. No matter if I reset the app, replaced the O1R_UPDATE_19NOV20.sqlite and give appropriate chown and chmod rights or reset the app before.
-My second attempt was a modified APK. Unfortunately, this can not be installed, because it must be signed by nvidia. I have root, but I don't know what to change in the /system/packages.xml so that the system would accept the app.
->When I try to install it, I only get the message that you have to sign this apk appropriately for the user.
-Then I tried to reproduce the service call from the logcat but unfortunately I don't know what to do.
Does anyone have a tip for me?
Greetings by Idijt

Categories

Resources