Thanks for watching - See the video description for links to the training files & Discord invite! Also, let me know in the comments which missing features you want added to JavaScript. discord.gg/k7WX7Be3Vy
Warning about PIN unlock... many devices will only allow a limited number of attempts (like I think iPhone is typically 6 attempts). After that they may display a warning dialog (which likely will get dismissed once your script presses Enter again). In some cases, it could even erase all of the files on the device!
Thanks for subscribing! Be sure to check out my Discord server as well: discord.gg/k7WX7Be3Vy Talking Sasquach is amazing, I love all of his stuff. He is planning on going to DEF CON next month in Las Vegas, so hopefully I'll get to meet him in person! He is selling shirts to fundraise for his trip - rabbit-labs.com/product/limited-edition-talking-sasquach-def-con-32-t-shirts/ (but you have to fill out notes with Size [SM,Med,Lg,XL,2XL,3XL,4XL] & Color [black or lab grey]).
@@MrDerekJamison Thanks for the info. I'll check it out.......after I watch this video again. 😆 This is really freaking me out. I'm 64-years-old, and my first computer was a Sinclair ZX-81, with *1k of RAM.* Of course, I bought the 16k expansion, so I was on the cutting edge. 😆 We've made a bit of progress.
Thanks for watching! It was strange doing the intro entirely from a script (especially one I didn’t write). At the end of the video I showed the AI script that was generated for me. 😀
One person would like to be able to send data to an 8x8 matrix display in JavaScript. SPI device (MOSI, CLK, CS, 3V3, GND), it doesn't use MISO pin (the device doesn't give back any data). Maybe we can figure out how to bit-bang with JavaScript commands as the delay (need microseconds not milliseconds)? Or perhaps we can use `ffi` commands for this special case, similar to ruclips.net/video/EtOZN3Rh47c/видео.html but for SPI? I'm moving right now, but hopefully we will time to research later in July.
The vast majority of spi devices do not care about timing unless it's too fast. So as long as you are clocking with your data it will probably work. I've transmitted data via spi to an LCD by actual hand using switches.
Glad you liked it! Hopefully you can have some back-and-forth sessions with chatgpt and make a cool script for Flipper! If you do, please post about it in discord (or as a new RUclips comment, so I see it)!
Much appreciated! My wife was like "why is your intro so different" and encouraged me to add the ending to the video where I explain that AI made me do it. 🤣
Hey Derek, ive really enjoyed your video but i just realized the features i wanted for my app were not supported, i was looking to make a simple alarm clock app for the flipper, as every other clock app i have found has no alarm option. Do you have any ideas about how i could make it?
The problem is once you exit the app, your program won't be running anymore. There is a "Count Down Timer" app you could look at. Maybe instead of setting the remaining amount time, you could also allow entering a time for the event. If you wrote your own firmware modifications, you could implement an alarm at a given time. The challenge is the resource may not be available (like speaker, vibro, etc.) depending on what app the Flipper Zero is running at the time.
JavaScript is built-in to all of them; but official firmware doesn’t support many features (yet). I personally usually use Momentum when doing JavaScript. uPython is a different programming language, you can find it in the app catalog (lab.flipper.net/apps) or preinstalled on some firmware.
I must be doing something wrong. I had a simple script made to run external pin for IR blaster and im getting a parsing error at line 1. The script looks fine but when I go to run it on flipper i keep getting a parsing error on line 1 [# include
It sounds like the AI is trying to write C code instead of JavaScript code. It's been a while since I made the video, so maybe the sample files I provided need updating? Be sure to give AI some samples, so it can make good guesses as to what is possible. I'd recommend giving it at least one of the files from github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/system/js_app/examples/apps/Scripts as an example of what is possible. Probably more samples will help it even more. In C we do something like: #include But in JavaScript we do something like: let storage = require("storage"); In my Python scripts we do something like: import storage
I can try with the new AI models tonight to see if something has changed. My guess is it needs some of the examples like github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/system/js_app/examples/apps/Scripts Feel free to reach out to me @CodeAllNight on Discord if you need help.
How to fix the right position on Flipper zero rocker switch up down left and center button are working . I opened up the flipper very carefully and sprayed a little contact cleaner on the butt on the right side. I don't know if that can be pulled apart and to replace the switch any tips. I can't control it from my phone, but that is not very convenient. Can I replace just that top board or does anybody have a suggestion for that tiny micro switch?
I've still never taken mine apart. TalkingSasquach has a lot of experience in taking the device apart, so you could ask in his Discord server at discord.gg/squachtopia or on one of his videos where he takes it apart (like the "Ultimate RGB Mod" from 2 months ago).
I doubt it, unless you gashed the WiFi with custom firmware that listened to lighting commands from the serial port. Similar to Marauder, but specifically targeted at your WiFi devices.
No. I'm not aware of any great models for the C APIs used by the firmware. The training files in this video were only for the JavaScript APIs. I typically edit the files using Visual Studio Code + CoPilot which is a decent tool for making custom firmware. You have to be familiar with C and sometimes CoPilot will give incorrect information, so you have to understand the answers. I'm not sure how you want to extend your firmware? Momentum has some extensions for momentum-fw.dev/asset-packs/
github.com/jamisonderek/flipper-zero-tutorials/tree/main/js/ai are my training files and prompt I used. If you need additional assistance, please join my Discord server and someone can assist you. discord.gg/k7WX7Be3Vy
JavaScript is terrible for music, because the timing just isn't there. There are some programs written in C that allow the Flipper to play music (like 8-bit wav file as input, or fmf). See the following apps... - lab.flipper.net/apps/music_player - lab.flipper.net/apps/wav_player
Let me know if you create something. Also, if you run into issues, hopefully people in my Discord server can assist [as long as you tried following the steps in the video first]. discord.gg/k7WX7Be3Vy
flipperzero.one/how-to-buy is the best place to buy. Lots of scammers will DM you but not actual give you a Flipper. That said, I do believe some people bought them thinking it would unlock everything and the devices they own aren't compatible (some KeeLoq, 5GHz, etc.) so they want to sell it because it's basically just a bad TV remote for them. Depending on why you want a Flipper, there are some inexpensive alternatives. Like M5Stack, etc.
It never gets it right the first try for me, which is what I hoped people would learn from my video. You actually have to try the script! I was using regular chatgpt but I only get like 10 back-and-fourth sessions before I have to wait 4 hours -- I subscribed for a month because I wanted to make the video that week. :) I'm super new to AI and was curious to see if it was even possible to get decent code for a non-programmer. Following my steps, the answer is yes, but you need those prompt files or else it is very difficult to get what you want. It was painful for me to tell it the "delay(100);" error, when I knew that wasn't the issue -- but it still ended up solving it! I also would usually give it more hints like I'd say "PA7" instead of "A7" or "pin 2" when doing GPIO. (But it will get there eventually even if you just say pin 2.) Even when the code is total fiction, it's interesting to ask yourself why the API doesn't work the way it predicted it would. Sometimes it can help improve your API (for the few of us that are exposing Flipper features to JavaScript).
Thanks for watching - See the video description for links to the training files & Discord invite! Also, let me know in the comments which missing features you want added to JavaScript.
discord.gg/k7WX7Be3Vy
Warning about PIN unlock... many devices will only allow a limited number of attempts (like I think iPhone is typically 6 attempts). After that they may display a warning dialog (which likely will get dismissed once your script presses Enter again). In some cases, it could even erase all of the files on the device!
This is amazing! I just found your channel from a 'Talking Sasquach' video. I'll be binge watching your videos now. 😆
Thanks for subscribing! Be sure to check out my Discord server as well: discord.gg/k7WX7Be3Vy
Talking Sasquach is amazing, I love all of his stuff. He is planning on going to DEF CON next month in Las Vegas, so hopefully I'll get to meet him in person! He is selling shirts to fundraise for his trip - rabbit-labs.com/product/limited-edition-talking-sasquach-def-con-32-t-shirts/ (but you have to fill out notes with Size [SM,Med,Lg,XL,2XL,3XL,4XL] & Color [black or lab grey]).
@@MrDerekJamison Thanks for the info. I'll check it out.......after I watch this video again. 😆 This is really freaking me out. I'm 64-years-old, and my first computer was a Sinclair ZX-81, with *1k of RAM.* Of course, I bought the 16k expansion, so I was on the cutting edge. 😆 We've made a bit of progress.
You had me at the twist transition
Thanks for watching! It was strange doing the intro entirely from a script (especially one I didn’t write). At the end of the video I showed the AI script that was generated for me. 😀
Mr. Jamison always delivers 🔥💪🏾
Thanks!
One person has requested the ability to read and send IR codes. Sending seems doable, but without callbacks I'm not sure how well receive would work?
One person would like to be able to send data to an 8x8 matrix display in JavaScript. SPI device (MOSI, CLK, CS, 3V3, GND), it doesn't use MISO pin (the device doesn't give back any data). Maybe we can figure out how to bit-bang with JavaScript commands as the delay (need microseconds not milliseconds)? Or perhaps we can use `ffi` commands for this special case, similar to ruclips.net/video/EtOZN3Rh47c/видео.html but for SPI?
I'm moving right now, but hopefully we will time to research later in July.
The vast majority of spi devices do not care about timing unless it's too fast. So as long as you are clocking with your data it will probably work. I've transmitted data via spi to an LCD by actual hand using switches.
Man that was awesome Tutorial 💯 👌 👍
Glad you liked it! Hopefully you can have some back-and-forth sessions with chatgpt and make a cool script for Flipper! If you do, please post about it in discord (or as a new RUclips comment, so I see it)!
Top notch quality video as always!
Much appreciated! My wife was like "why is your intro so different" and encouraged me to add the ending to the video where I explain that AI made me do it. 🤣
Еееее, Дождались 🍓
Thank you for the video
Thanks for watching!
Which AI do you recommend for writing code?
Claude 3.5 sonus is so hot right now. 😊
Hey Derek, ive really enjoyed your video but i just realized the features i wanted for my app were not supported, i was looking to make a simple alarm clock app for the flipper, as every other clock app i have found has no alarm option. Do you have any ideas about how i could make it?
The problem is once you exit the app, your program won't be running anymore. There is a "Count Down Timer" app you could look at. Maybe instead of setting the remaining amount time, you could also allow entering a time for the event.
If you wrote your own firmware modifications, you could implement an alarm at a given time. The challenge is the resource may not be available (like speaker, vibro, etc.) depending on what app the Flipper Zero is running at the time.
What firmware are you using because i can't find the UPython app?? For my flipper 0 I hav ethe extreme firmware installed on my flipper zero
JavaScript is built-in to all of them; but official firmware doesn’t support many features (yet). I personally usually use Momentum when doing JavaScript. uPython is a different programming language, you can find it in the app catalog (lab.flipper.net/apps) or preinstalled on some firmware.
@@MrDerekJamison ok thaks i installed momentum on my flipper and that worked thanks!!!!
I must be doing something wrong. I had a simple script made to run external pin for IR blaster and im getting a parsing error at line 1. The script looks fine but when I go to run it on flipper i keep getting a parsing error on line 1 [# include
i have the same problem, did you solved already?
It sounds like the AI is trying to write C code instead of JavaScript code. It's been a while since I made the video, so maybe the sample files I provided need updating? Be sure to give AI some samples, so it can make good guesses as to what is possible. I'd recommend giving it at least one of the files from github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/system/js_app/examples/apps/Scripts as an example of what is possible. Probably more samples will help it even more.
In C we do something like:
#include
But in JavaScript we do something like:
let storage = require("storage");
In my Python scripts we do something like:
import storage
I can try with the new AI models tonight to see if something has changed. My guess is it needs some of the examples like github.com/flipperdevices/flipperzero-firmware/tree/dev/applications/system/js_app/examples/apps/Scripts
Feel free to reach out to me @CodeAllNight on Discord if you need help.
How to fix the right position on Flipper zero rocker switch up down left and center button are working . I opened up the flipper very carefully and sprayed a little contact cleaner on the butt on the right side. I don't know if that can be pulled apart and to replace the switch any tips. I can't control it from my phone, but that is not very convenient. Can I replace just that top board or does anybody have a suggestion for that tiny micro switch?
I've still never taken mine apart.
TalkingSasquach has a lot of experience in taking the device apart, so you could ask in his Discord server at discord.gg/squachtopia or on one of his videos where he takes it apart (like the "Ultimate RGB Mod" from 2 months ago).
Yes sir I'm here 👀 💯 👍
Thanks for being here!
Can I use it to turn on/off wifi lights with the wifi dev adapter
I doubt it, unless you gashed the WiFi with custom firmware that listened to lighting commands from the serial port. Similar to Marauder, but specifically targeted at your WiFi devices.
It can do subghz to these… BN-LINK Wireless Remote Control... www.amazon.com/dp/B07FK5SP9H
Great video as always
Thanks! Glad you enjoyed.
Does this work as well to make a Custom Firmware?
No. I'm not aware of any great models for the C APIs used by the firmware. The training files in this video were only for the JavaScript APIs.
I typically edit the files using Visual Studio Code + CoPilot which is a decent tool for making custom firmware. You have to be familiar with C and sometimes CoPilot will give incorrect information, so you have to understand the answers.
I'm not sure how you want to extend your firmware? Momentum has some extensions for momentum-fw.dev/asset-packs/
Hello, I can't find a link to download the data anywhere
github.com/jamisonderek/flipper-zero-tutorials/tree/main/js/ai are my training files and prompt I used.
If you need additional assistance, please join my Discord server and someone can assist you. discord.gg/k7WX7Be3Vy
Hey, I need to go to a concert and play my own music. How can I do that
JavaScript is terrible for music, because the timing just isn't there. There are some programs written in C that allow the Flipper to play music (like 8-bit wav file as input, or fmf). See the following apps...
- lab.flipper.net/apps/music_player
- lab.flipper.net/apps/wav_player
code all night your the cats pajamas man🤘🏻🤘🏻
Thanks. Speaking of pajamas, did you see this video I made... ruclips.net/user/shortsLmEUcI4w4QQ
I wish I could pick the thumbnail for shorts. :)
My man! Yes!
Let me know if you create something. Also, if you run into issues, hopefully people in my Discord server can assist [as long as you tried following the steps in the video first].
discord.gg/k7WX7Be3Vy
Thank you
You're welcome!
i love this device ans dont own oone yet every one is so grimmy about the price
flipperzero.one/how-to-buy is the best place to buy. Lots of scammers will DM you but not actual give you a Flipper. That said, I do believe some people bought them thinking it would unlock everything and the devices they own aren't compatible (some KeeLoq, 5GHz, etc.) so they want to sell it because it's basically just a bad TV remote for them.
Depending on why you want a Flipper, there are some inexpensive alternatives. Like M5Stack, etc.
Seems you’re using premium chatgpt account and still getting errors like me. It’s definitely not for beginners!
It never gets it right the first try for me, which is what I hoped people would learn from my video. You actually have to try the script!
I was using regular chatgpt but I only get like 10 back-and-fourth sessions before I have to wait 4 hours -- I subscribed for a month because I wanted to make the video that week. :) I'm super new to AI and was curious to see if it was even possible to get decent code for a non-programmer. Following my steps, the answer is yes, but you need those prompt files or else it is very difficult to get what you want. It was painful for me to tell it the "delay(100);" error, when I knew that wasn't the issue -- but it still ended up solving it! I also would usually give it more hints like I'd say "PA7" instead of "A7" or "pin 2" when doing GPIO. (But it will get there eventually even if you just say pin 2.)
Even when the code is total fiction, it's interesting to ask yourself why the API doesn't work the way it predicted it would. Sometimes it can help improve your API (for the few of us that are exposing Flipper features to JavaScript).