I noticed that my full version of jessie must have had ffmpeg in it already so I removed it but it did not help: usr/local/bin/ffmpeg: cannot execute binary file: Exec format error When compiling ffmpeg for Raspberry Pi 3 I want to use all four cores of processor.
Lastly, I hide the password fields on my views/devise/registrations/ form by wrapping all three of the password fields withĪfter a bit of research on the best way to stream from the Raspberry Pi 3 with camera sensor version 2, I came across this tutorial: Then, I add a new controller under controllers/users/registrations_controller.rb:Ĭlass Users::RegistrationsController Set_flash_message(:notice, :success, :kind => "Facebook") if is_navigational_format? #sign_in_and_redirect :event => :authentication #this will throw if is not activated I edit my omniauths_callbacks_controller.rbĬlass Users::OmniauthCallbacksController Time.now - 1.minuteįlash = "Please set phone.
However, since the password was auto generated for them on registration with facebook, I need a way to get the additional info and not bother them for a password in the process (which they do not know).įirst I redirect the new signup to the registration page: I realized I need users to finish filling out their registration form to get info that facebook does not provide such as phone. I am using Heroku so I need to remember to set the Facebook app key and secret variables in my Heroku settings as well User.last_name = data.split(" ").last if user.last_name.blank? User.first_name = data.split(" ").join(" ") if user.first_name.blank? User.last_name = (" ").lastĭef self.new_with_session(params, session) Where(provider: auth.provider, uid: auth.uid).first_or_create do |user| #where(auth.slice(:provider, :uid)).first_or_create do |user| Under Settings: Add 'website' platform, then set app domains to Under App Review: make liveĪfter following along with the rest of the devise tutorial above, I came up with the following two methods for my user model: My projects are located under /home/sean/projects, so when I am in a specific project directory I edit bashrc like : I mostly follow the this Devise how-to for setting up OmniAuth:Įxceptions to above how-to: in devise.rb initializer I addedĬonfig.omniauth :facebook, ENV, ENV,ĪD_FB_APP_ID and AD_FB_APP_SECRET I set these in my local machine's bashrc file (ubuntu linux installed) to match the values in my newly created facebook app. Goal: Make my site easier for vistors by allowing them to register or login (existing Devise account) with Facebook. Was already there so I exited out without changing. (see the aws link above for detailed explanation) Since I use Bash I edited like: Since I am on Ubuntu v 16.04, I cd to my projects folder to get started.įigure out your shell then edit your PATH. Since I am more familiar with Rails than Node and I want my site to be public, the idea I have is to write the temperature values to a cloud Postgres database, then graph them with Rails 5, and a graphing gem like Chartkick. I did not build the web interface, but rather grabbed it from an old tutorial on Raspberry Pi. The Node based site is slow and error prone. The Pi grabs temperatures from soil and air sensors, saves them to a text file, then the web site displays them on a graph with the help of Node.js. I have a Raspberry Pi earthworm bin temperature monitor served on my local network. I have decided to try out Rails 5 on Amazon Web Services using Elastic Beanstalk for my next project to keep costs down and have apps that load immediately. I also do not want to rack up multiple apps with a minimum $7 per month hosting fee for each idea I want to explore.
However, I find that I want to create inexpensive web apps that do not go to sleep as the Heroku free apps do. Heroku has been my go to method for deploying Ruby on Rails apps. I try to add in supporting links to help anyone who can benefit from them.