{"id":12432,"date":"2014-09-29T12:50:43","date_gmt":"2014-09-29T11:50:43","guid":{"rendered":"http:\/\/timoelliott.com\/blog\/?p=6804"},"modified":"2014-09-29T12:50:43","modified_gmt":"2014-09-29T11:50:43","slug":"a-slice-of-raspberry-pi-with-sap-lumira","status":"publish","type":"post","link":"https:\/\/timoelliott.com\/blog\/2014\/09\/a-slice-of-raspberry-pi-with-sap-lumira.html","title":{"rendered":"A slice of Raspberry Pi with SAP Lumira"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumira-pi-banner.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-6809\" src=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumira-pi-banner.jpg?resize=608%2C353&#038;ssl=1\" alt=\"lumira pi banner\" width=\"608\" height=\"353\" \/><\/a><\/p>\n<p>No, you can\u2019t actually run Lumira desktop on the <a href=\"http:\/\/www.raspberrypi.org\/\" target=\"_blank\">$35 Raspberry Pi computer<\/a>, and sadly, even with the new <a href=\"http:\/\/www.raspberrypi.org\/web-browser-released\/\" target=\"_blank\">Epiphany<\/a> browser, there doesn\u2019t yet seem to be a way to connect to <a href=\"http:\/\/cloud.saplumira.com\" target=\"_blank\">Lumira Cloud<\/a>, but you can run Sybase SQL Anywhere on the device, and connect to it from Lumira Desktop.<\/p>\n<p>Why would anybody want to do this? \u2013 because we can! Or more realistically, you might just want to use a Raspberry Pi and SQL Anywhere in an internet of things scenario, collecting <a href=\"http:\/\/www.raspberrypi.org\/tag\/sensors\/\" target=\"_blank\">data from sensors<\/a>.<\/p>\n<p>I followed the recommended steps to <a href=\"http:\/\/scn.sap.com\/community\/sql-anywhere\/blog\/2014\/08\/11\/sql-anywhere-available-for-linux-on-arm\" target=\"_blank\">install<\/a> and <a href=\"http:\/\/wiki.scn.sap.com\/wiki\/display\/SQLANY\/Installing+SQL+Anywhere+on+Linux+ARM\" target=\"_blank\">configure<\/a> the SQLAnywhere 16 demo database on my Raspberry Pi (although note that version 12 is currently the recommended version for the BusinessObjects tools, including Lumira).<\/p>\n<p>Here\u2019s a quick summary of those steps &#8212; refer to the links above for more details.<\/p>\n<p><a href=\"https:\/\/global.sap.com\/campaign\/ne\/sybase\/sql_anywhere_16_download_program\/index.epx?kNtBzmUK9zU\">Register for the latest SAP SQL Anywhere 16 Developer Edition<\/a>.\u00a0After registering you will be sent a registration key over email.<\/p>\n<p>Fire up your Raspberry Pi, then download and extract the SQL Anywhere Developer Edition (it\u2019s easiest to do this by connecting to the Pi from another computer using SSH, i.e. using a program like <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">PUTTY<\/a> for Windows, or Terminal for Mac \u2013 you can\u00a0use &#8220;sudo ifconfig&#8221; to find out the Raspberry Pi&#8217;s current ip address \u2013 you can then just copy and paste the lines below.)<br \/>\n<code><br \/>\ncd \/tmp<br \/>\nwget <a href=\"http:\/\/d5d4ifzqzkhwt.cloudfront.net\/sqla16developer\/bin\/sqla16developerlinuxarmv6.tar.gz\">http:\/\/d5d4ifzqzkhwt.cloudfront.net\/sqla16developer\/bin\/sqla16developerlinuxarmv6.tar.gz<\/a><br \/>\ntar -xvf sqla16developerlinuxarmv6.tar.gz\u00a0 <\/code><\/p>\n<p>Install SQL Anywhere using the key your received earlier over email (accept all of the defaults)<br \/>\n<code><br \/>\ncd ga1600<br \/>\nsudo .\/setup\u00a0 <\/code><\/p>\n<p>Return to your home directory<br \/>\n<code><br \/>\ncd ~<\/code><\/p>\n<p>Add the path variables to the <em>current<\/em> shell&#8217;s environment (see posts above on how to do this permanently).<br \/>\n<code><br \/>\n. \/opt\/sqlanywhere16\/bin32\/sa_config.sh\u00a0 <\/code><\/p>\n<p>To test out the environment, the following should return the current version of the server (e.g. 16.0.0.1972)<br \/>\n<code><br \/>\ndbsrv16 -v\u00a0 <\/code><\/p>\n<p>If everything is working, create a copy of the demo database and start it as \u201cmydemo\u201d<br \/>\n<code><br \/>\nmkdir dbscratch<br \/>\ncd dbscratch<br \/>\ncp \/opt\/sqlanywhere16\/demo.db .<br \/>\ndbspawn -f dbsrv16 -n mydemo -o server.out demo.db<\/code><\/p>\n<p>You can then switch to Lumira on another PC connected to the same network, open a new document, choose \u201cSybase SQL Anywhere 12 \u2013 JDBC Drivers\u201d, and fill in the following fields:<br \/>\n<code><br \/>\nusername: dba<br \/>\npassword: sql<br \/>\nserver: 192.168.0.35:2638 &lt;replace with the IP address of the Raspberry PI<br \/>\ndatabase: mydemo<\/code><code>\u00a0<\/code><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border-width: 0px;\" title=\"lumira pi connection 1\" src=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumirapiconnection1.png?resize=608%2C371&#038;ssl=1\" alt=\"lumira pi connection 1\" width=\"608\" height=\"371\" border=\"0\" \/><\/p>\n<p>The drivers seems to work OK, although I didn&#8217;t get a list of the available tables. To get data, you can do a SQL query such as \u201cSELECT * From Customers\u201d (you can see the <a href=\"http:\/\/dcx.sybase.com\/sa160\/en\/saintro\/fg-sademo.html\" target=\"_blank\">full demo schema here<\/a>)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border-width: 0px;\" title=\"lumira pi connection 2\" src=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumirapiconnection2.png?resize=608%2C406&#038;ssl=1\" alt=\"lumira pi connection 2\" width=\"608\" height=\"406\" border=\"0\" \/><\/p>\n<p>You can then manipulate the data in Lumira as from any other data source to create visualizations:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border-width: 0px;\" title=\"lumira pi 1\" src=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumirapi1.png?resize=608%2C380&#038;ssl=1\" alt=\"lumira pi 1\" width=\"608\" height=\"380\" border=\"0\" \/><\/p>\n<p>And Infographics:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumirapi2.png?ssl=1\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border-width: 0px;\" title=\"lumira pi 2\" src=\"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumirapi2_thumb.png?resize=608%2C380&#038;ssl=1\" alt=\"lumira pi 2\" width=\"608\" height=\"380\" border=\"0\" \/><\/a><\/p>\n<p>To stop the database on the Raspberry Pi you can use:<br \/>\n<code><br \/>\ndbstop -c \u201cServer=mydemo;UID=DBA;PWD=sql\"<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Accessing data on the Raspberry Pi with Sybase SQL Anywhere and SAP Lumira<\/p>\n","protected":false},"author":2,"featured_media":12834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[706,867,911,936,1010,1011,1012],"class_list":["post-12432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products","tag-lumira","tag-raspberry-pi","tag-sap","tag-saplumira","tag-sql","tag-sql-anywhere","tag-sqlanywhere"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/timoelliott.com\/blog\/wp-content\/uploads\/2014\/09\/lumira-pi-banner-608x353-2.jpg?fit=608%2C353&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3X9RF-3ew","_links":{"self":[{"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/posts\/12432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/comments?post=12432"}],"version-history":[{"count":0,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/posts\/12432\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/media\/12834"}],"wp:attachment":[{"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/media?parent=12432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/categories?post=12432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timoelliott.com\/blog\/wp-json\/wp\/v2\/tags?post=12432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}