Cloud izing/ifying Beersmith!

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

rtt121

Well-Known Member
Joined
Apr 23, 2009
Messages
318
Reaction score
14
Location
Indian Mills
EDIT! Nostalgia pointed out a much better easier way to do this. I haven't had time to try it as I recently moved.

Its as simple as creating a dropbox account. Copying and pasting your entire beersmith folder into drop box and then running the executable file from there.

When I attempted this I tryed to do a fresh install to the dropbox folder.. this does not work.

Everything below here was the original post.




So I basically use beer smith to create my recipe and use the tools. After that... it goes to waste :(.

I have realized the reason I have not utilized the great features such as brew logging, inventorying etc.. is that I run the program on 3-4 computers, some at work some at home some portable some not. All having their own database instead of one database that looks the same from everywhere.

Keep in mind here I am no computer programmer. So somewhat smarter than I please feel free to improve upon this idea. Here we go....

First we are going to need two extra programs, both are free.

dropbox.com - this is a program that needs to stay running on all computers if you want to try this. Basically a "cloud" folder that looks like its on your hard drive. If the application is running, anything you put into your dropbox folder will be updated to the cloud.

autohotkey.com/ - a program used to write small scripts to make somewhat large tasks smaller. For example you could make it work so that every time you type in "BTW" it will actually write out the words "By the Way"

We are going for something that looks like this:
2133-beersmith-desktop-photo.jpg


Every computer you use will have these three "applications".

"Beersmith" obviously opens beersmith (each computer having it installed
locally).

"Update Beersmith Cloud" takes every .bak and .bsm file locally and copies it to the cloud folder.

"Update Beersmith Local" takes all files beersmith related from the cloud and copies them to the local beer smith folder.

For example, I am at computer A and I make a recipe that I want to stay in my database. Close beersmith as normal and double click "Update Beersmith Cloud". Now when I am on computer B, before I open Beersmith I double click "Update Beersmith Local". Perfecto!

Setting up a script in autohotkey is pretty self expanatory. When you are there it is simply a blank notepad document that the autohotkey program uses to run.

2134-edit-script.jpg









2135-update-beersmith-cloud.jpg


After getting into the script editor (notepad) this is the entirety of the Update Beersmith Cloud script

Filecopy is the command. The first address points to local beersmith folder. The second points to your "cloud", note the "dropbox" that is the cloud folder. The 1 designates to automatically overright.

In the cloud update, I copy all the bsm and bak files. Essentially leaving the .exe files behind.






2136-update-beersmith-local.jpg


In the Update Beersmith Local script I have this. Similar to the Update Beersmith Cloud script except when this one is run it will copy FROM the cloud to the local beersmith. Note only one line and the *.* because exe files were not copied to the cloud in the first place. DO NOT MOVE the executable files around, your beersmith wont work anymore until you reinstall.

THATS IT!

A few notes. Obviously these scripts are written to where my beersmith is installed and to where my cloud folder is installed. These may need to be changed for every computer you want to hook up to your new beersmith database network. For example. The cloud folder on my computer A is under C:\documents and settings\administrator\my documents\dropbox\ on B it is C:\documents and settings\owner\my documents\dropbox\.

If anyone at beersmith is reading, it would be great to have the application simply web based (a real cloud version of beersmith). Thus eliminating the need to update each and every time.

I hope this helps someone!
 
Clever idea. I'll try to help you add some additional slickness.

If you really can't install and run Beersmith from the cloud folder directly (I haven't tried so i don't know) you could use the same basic principles you outlined above but put all of the actions into a single VBScript. I'll outline it in psuedo code, implementation should be pretty easy.

Start script
Verify connection / folder existence for cloud folder
Copy files from cloud to local folder
Create shell object
Execute Beersmith from Shell object
Wait for Shell object to return exit code (proof that you finished and closed B.S.)
copy local files back to cloud
Exit

That's it, only one script to run. You could set the paths by hard coding in the script with variables, pass them as arguments from a shortcut or set environment variables on the computer and read them with the script.

The only immediate problem you have with this scheme (as you implemented or as described above) is that if you open and edit on two computers at the same time, the last one to write to the cloud wins...
 
Awesome.. I knew someone would take this and make it more "exactly what I wanted". Let me know how she goes, your above my level
 
Maybe I'm missing something here. I just created a Dropbox account. I dragged my Beersmith directory into it (from C:\Program Files\Beersmith\). I went to my wife's machine, installed Dropbox, double clicked on Beersmith.exe and it ran just fine. I even added a recipe and checked that it updated on the other computer.

Have you tried just running it from the cloud folder?

-Joe
 
Sorry, was talking to the OP. I did see that in your post.

I just tested it out on my laptop and it works just fine. I just put a shortcut to Beersmith.exe in my quick-launch bar and I'm good to go.

Just be careful if using on two machines in rapid succession - it does take a few seconds for the files to synchronize after you make changes. Shouldn't be an issue in normal use. Which for me would be the desktop to tweak the recipe, then the laptop during the brewday.

-Joe
 
I just opened a dropbox account, and moved my Beersmith folder to it. I had to re-enter my license key....but now I can't see any of my recipes. Are the recipe files stored somewhere other than the Beersmith folder?
 
Fairly sure it's against your license to have it installed on more than one computer. Being a programer feel I have to point these things out to keep honest people honest that don't realize otherwise.
 
Nope...not against the license. My email from Beersmith that has the program key says it can be installed on two computers.

I found my recipes too....Win7 hides them in a virtual store folder.
 
Nope...not against the license. My email from Beersmith that has the program key says it can be installed on two computers.

I found my recipes too....Win7 hides them in a virtual store folder.

OK, so I retract my previous statement, and as a programer will follow the advice I give my clients (at least under my breath) and STFU and RTFM :cross: :drunk: :ban:
 
lol nice :) As a programmer who is anti-piracy myself, I don't think I'd balk at this usage anyway. It's one person using one copy of the software at a time. It doesn't really matter that it's on different computers.

-Joe
 
Thanks for pointing out the config files for BS.....I have been meaning to write a scheduled bat file to back my BS stuff to my DB account. Finally got it done!

Jason
 
OK, so I retract my previous statement, and as a programer will follow the advice I give my clients (at least under my breath) and STFU and RTFM :cross: :drunk: :ban:


It's all good JD:mug:

I just got dropbox installed on the laptop.....BS is running just fine, and all my recipes are there! I too like to do most of the BS work on my PC, and use the laptop out in the garage on brewday.

This is great, thanks for posting this!
 
they are in:
C:\Users\{USERNAME}\AppData\Local\VirtualStore\Program Files\BeerSmith


You will have to enable viewing of this folder in the control panel. Go to folder options and enable viewing of hidden files.

Once you find the recipe file, just drag it to the dropbox.
 
I was able to cloudify Beersmith by installing PortableApps into Dropbox then installing Beersmith into PortableApps. PortableApps allows you to install many different programs in the cloud or USB stick. I'm able to have my Beersmith, Google Chrome and many other programs on any/all of my computers.

http://portableapps.com/
 
I just installed BS to a usb key. I can run it from any computer that way. Not sure if that's ok to the programmers out there.
 
Moved into a new place today.. haven't had internet.

Nostalgia, I will try that tomorrow, if that works for me that is a much easier and more effective way of going about it. I did try to do it that way but it was a different approach. What I did was install dropbox on a pc before having beersmith installed. Then I actually installed to that folder instead of moving files over. When I clicked the BS executable I got an error saying something had changed.. if I do it again Ill take a screen capture.

Anywho, it seems like its more than possible to have beersmith do what I need it to do.
Im gonna call this a success even though I am not sure which route I will end up going.
 
Oh sh-it I just erased 3 years of brewing history!!!!! I installed dropbox, then went to my laptop, and installed it. For some reason it wasn't updating my last two recipes. So like a fool I decide to uninstall beersmith off my laptop and start fresh, I did turn dropbox off before I did this. Somehow it deleted my beersmith folder off my desktop!!

This is not cool. Everything I do is on beersmith, I need to go throw up now. Be careful with this app.
 
YAY for the pack rat feature, it saves deleted files for 30 days, almost back up and running.

How in the hell did it delete off my desktop when I had dropbox turned off on the laptop??
 
Back
Top