Replacement for Nest Rush Hour / Energy API - nest-device-access

With the works with Nest APIs being deprecated is there a replacement for the energy API? https://developers.nest.com/guides/api/energy-guide

Related

How can I limit the output of a long character in the R console?

I'm starting to work on text data. I have a long charachter variable or vector and would like to check either 5 lines or 50 words in my console. How can I limit the output that R show when I inspect a character? Is there a useful R function or setting in RStudio to limit console output?
x <- "growth revenue seed fundraise customers spread 50 countries series a funds raised sequoia capital indiasan francisco july 21 2021 prnewswire multichannel sales engagement platform outplay today announced 73m series a fundraise sequoia capital india outplay funds raised invest technology hiring exceptional talent globethe outplay team celebrating announcement series a fundingbusinesses today rely combination inbound outbound sales models drive revenues while inbound sales process rapidly evolved decade outbound sales outbound sales teams typically highvolume tactics drive revenue but approach scalable revenue eventually function size outbound sales team this outbound sales teams datadriven approach targeting prospects convert end spending time emailing coldcalling hundreds prospects hoping convert launched 2019 outplay mission change bringing predictability outbound sales sales reps talk prospect time channel the platform helps outbound sales teams plan execute track measure optimize interactions companies prospects multiple channels email phone sms social media live chatlaxman papineni ceo outplay commentedoutbound sales teams dark horse sales organization targets high methods scientific outplay committed making outbound outreach datadriven sales teams talking warmest prospects point multiple channels optimising time resources the continued partnership sequoia capital india testament fact sales engagement space poised 559b market 2023 huge opportunity outplaywith outplay sales managers create databacked sales playbooks coach team members achieve sales targets the platform combination automation personalization helps teams start genuine conversations scale enabling stay task multiple channels single interface drive meetings sales reps build multichannel outreach plan prospects email phone sms linkedin twitter chatfor outplay helps sales teams engage warm prospects notifying prospect visits website enabled outplay industry outbound livechat feature rep initiate live chat conversation prospect customers qualify prospects faster grow pipeline 300 tool alongside inbound chatwe continue excited outplay mission making sales rep perform rep team outbound sales evolving rapidly reps personalized automated contextual tools drive sales outplay successfully enabling sales reps spend average hours day outplay demonstrating effectiveness product categoryleading customer reviews additionally rapid digitization due covid significant accelerant business tailwinds continue outbound sales digital harshjit sethi principal sequoia indiaoutplay offers support ensure software adoption customer teams days weeks months since seed fundraise usd 2 mn sequoia capital india surge early year company grown 4x revenue 3x team size customers 50 countriesabout outplayoutplay multichannel sales engagement platform ensures outbound sales teams deliver powerful message perfect time buyer journey channel with features dynamic sequencing magic outbound chat detailed analytics outplay sales development representatives sdrs business development representatives bdrs signals work warmest prospects multiple channels email phone sms linkedin twitter chatcontact email protectedlogo photo source outplay"
x
Thank you
stringr has str_trunc function to do return first n characters -
stringr::str_trunc(x, 50)
#[1] "growth revenue seed fundraise customers spread ..."
For words you may use word -
stringr::word(x, 1, 50)
#[1] "growth revenue seed fundraise customers spread 50 countries series a funds raised sequoia capital indiasan francisco july 21 2021 prnewswire multichannel sales engagement platform outplay today announced 73m series a fundraise sequoia capital india outplay funds raised invest technology hiring exceptional talent globethe outplay team celebrating announcement series a"

HERE API - Paris speed limits

I would like to know if the HERE API results apply the recent speed limit in Paris (https://www.msn.com/en-us/news/world/paris-limits-car-speed-to-30-kmhour-in-bid-to-boost-safety-air-quality/ar-AANUgux).
We have a response from the Map content team that, Paris: the speed limit of 30km/h has been implemented on the majority of Municipality attributes in the latest map release.
Useful speed limit demo
Link : https://tcs.ext.here.com/examples/v3/rme_speed_limits

Unable to Replace "\r\n-" in Text Extracted from PDF File Using readtext() from readtext Package in R

I am trying to remove "\r\n-" in a text which I extracted from a PDF file using readtext() from readtext package in R Studio. Below is my code in R:
library(readtext)
jd <- readtext("C:/Users/HomeUser/Documents/Sales Manager.pdf")
jd_text <- jd$text
jd_text2 <- gsub(pattern = "\r\n-?|•", replacement = " ", jd_text)
Below is the original extracted text jd_text:
"Sales Manager\r\nCFB Bots is a technology service provider specializing in Intelligent Automation (IA). We partner with\r\nlarge enterprises in their Digital Transformation journey and help them and their employees thrive\r\nin the Future of Work. Our mission is to co-create the Digital Workforce of the Future, and our vision\r\nis to make work enjoyable. For more information, please visit www.cfb-bots.com.\r\nWe are looking for a high performing frontrunner to blaze the trail and make new connections for\r\nour growing business. As a Sales Manager, you will play a vital role in keeping the Company\r\ncompetitive by achieving our customer acquisition and revenue growth targets. You will be the key\r\nliaison in every stage of the sales process, from planning to closing the sales.\r\nIf you are passionate about technology and are motivated by a hunger to solve our clients’\r\nchallenges, read on to find out more.\r\nYou can gain:\r\n− Incentive for achieving sales targets\r\n− Exposure to the latest industry trends and technologies\r\n− Endless learning and growth opportunities\r\n− Sharpen sales planning, analytical and management skills\r\n− Flexible work-life benefits\r\nYou will do:\r\nSales Strategy\r\n- Develop ..."
I was able to remove many "\r\n-" in jd_text using gsub(). Output from jd_text2 below:
"Sales Manager CFB Bots is a technology service provider specializing in Intelligent Automation (IA). We partner with large enterprises in their Digital Transformation journey and help them and their employees thrive in the Future of Work. Our mission is to co-create the Digital Workforce of the Future, and our vision is to make work enjoyable. For more information, please visit www.cfb-bots.com. We are looking for a high performing frontrunner to blaze the trail and make new connections for our growing business. As a Sales Manager, you will play a vital role in keeping the Company competitive by achieving our customer acquisition and revenue growth targets. You will be the key liaison in every stage of the sales process, from planning to closing the sales. If you are passionate about technology and are motivated by a hunger to solve our clients’ challenges, read on to find out more. You can gain: − Incentive for achieving sales targets − Exposure to the latest industry trends and technologies − Endless learning and growth opportunities − Sharpen sales planning, analytical and management skills − Flexible work-life benefits You will do: Sales Strategy Develop ..."
As you can see, I was able to remove "\r\n-" occurring after "Flexible work-life benefits" while "-" from those first few "\r\n-" still remained. However, when I pasted the original text extract directly from the display of jd_text in R Studio console into a new variable jd_test, applied gsub() again, I was able to accomplish my goal:
jd_test <- "Sales Manager\r\nCFB Bots is a technology service provider specializing in Intelligent Automation (IA). We partner with\r\nlarge enterprises in their Digital Transformation journey and help them and their employees thrive\r\nin the Future of Work. Our mission is to co-create the Digital Workforce of the Future, and our vision\r\nis to make work enjoyable. For more information, please visit www.cfb-bots.com.\r\nWe are looking for a high performing frontrunner to blaze the trail and make new connections for\r\nour growing business. As a Sales Manager, you will play a vital role in keeping the Company\r\ncompetitive by achieving our customer acquisition and revenue growth targets. You will be the key\r\nliaison in every stage of the sales process, from planning to closing the sales.\r\nIf you are passionate about technology and are motivated by a hunger to solve our clients’\r\nchallenges, read on to find out more.\r\nYou can gain:\r\n− Incentive for achieving sales targets\r\n− Exposure to the latest industry trends and technologies\r\n− Endless learning and growth opportunities\r\n− Sharpen sales planning, analytical and management skills\r\n− Flexible work-life benefits\r\nYou will do:\r\nSales Strategy\r\n- Develop ..."
jd_test2 <- gsub(pattern = "\r\n-?|•", replacement = " ", jd_test)
Output from jd_test2:
Sales Manager CFB Bots is a technology service provider specializing in Intelligent Automation (IA). We partner with large enterprises in their Digital Transformation journey and help them and their employees thrive in the Future of Work. Our mission is to co-create the Digital Workforce of the Future, and our vision is to make work enjoyable. For more information, please visit www.cfb-bots.com. We are looking for a high performing frontrunner to blaze the trail and make new connections for our growing business. As a Sales Manager, you will play a vital role in keeping the Company competitive by achieving our customer acquisition and revenue growth targets. You will be the key liaison in every stage of the sales process, from planning to closing the sales. If you are passionate about technology and are motivated by a hunger to solve our clients’ challenges, read on to find out more. You can gain: Incentive for achieving sales targets Exposure to the latest industry trends and technologies Endless learning and growth opportunities Sharpen sales planning, analytical and management skills Flexible work-life benefits You will do: Sales Strategy Develop ..."
Anyone has any idea what is the problem and how do I go about it? I have tried using another function pdf_text() from pdftools package but it yielded the same frustrating result. At first I thought "-" for the first few "\r\n-" is slightly longer than the latter ones but the direct copy-paste attempt seems to contradict this observation. Is there something "hidden" in the object which is not migrated during the copy-paste action? Any suggestions is greatly appreciated!
I found a likely answer to my question. It seems the original extracted text from the PDF document is not in an encoding that R Studio could recognise. This would explain why for the first few "-"s were not removed. After I apply jd_text <-iconv(jd_text,"UTF-8") to coerce the encoding to UTF-8, my problem was solved, and I am able to remove "\r\n-" completely.

API or scrape Google Jobs

I want to record the job posting information from this search. Is anyone aware of an API or can you confirm it's possible to scrape with Python beautiful soup? (I'm familiar with scraping, I just can't see how to get this website)
Disclosure: I work at SerpApi.
You can use google-search-results package to get data from Google Jobs listings. Check a demo at Repl.it.
from serpapi import GoogleSearch
params = {
"engine": "google_jobs",
"q": "sustainability jobs in mi",
"google_domain": "google.com",
"api_key":
"API_KEY"
}
client = GoogleSearch(params)
data = client.get_dict()
print("Job results")
for job_result in data['jobs_results']:
print(f"""Title: {job_result['title']}
Company name: {job_result['company_name']}
Description: {job_result['description']}
""")
print("Filters")
for chip in data['chips']:
print(f"Type: {chip['type']}\n")
print("Options")
for option in chip['options']:
print(option['text'])
Response
{
"jobs_results":[
{
"title":"Sustainability Analyst",
"company_name":"Amcor",
"location":"Ann Arbor, MI",
"via":"via LinkedIn",
"description":"Amcor Limited Job Posting\n\nRole: Sustainability Analyst\n\nLocation: TBD, ideally in the US (Ann Arbor, MI)\n\nAbout Amcor\n\nAmcor (ASX: AMC;\n\nAmcor is proud of its recent pledge to design all of our packaging to be recyclable or reusable by 2025. The job holder will play a very important and exciting role in Amcor’s journey to deliver this important commitment.\n\nPosition Overview\n\nRead more about Amcor’s sustainability commitment:\n\nThe Sustainability function plays a key role in positioning Amcor as THE leading packaging company for the environment delivering on Amcor’s sustainability strategy, the 2025 pledge and as a supplier of choice for responsible packaging.\n\nThe Sustainability Analyst is responsible for analyzing, reporting, and coordinating selected global Sustainability activities with direction from the VP Sustainability.\n\nEssential Responsibilities And Duties\n• Track legislative activity, analyze for risk and opportunity, help to prioritize actions\n• Assist with drafting... positions, coordinate Amcor activity and governance around advocacy (mostly in industry group participation)\n• Assists with internal reporting and communications, including preparing decks for internal meetings\n• Partnership administration, tracking projects and payments, and liaising with corporate finance on dept budget\n• Manage compliance statements, including anti-slavery statements, conflict minerals etc.\n• Coordinates the International Costal Cleanup, as needed with other partners\n• Other similar duties as required to support the corporate sustainability program\n\nQualifications\n• Education: Master's Degree or equivalent in related field preferred\n• Three to five years of experience\n• Strong analytical skills, including ability to interpret and graphically display environmental performance data\n• Excellent written and verbal communications skills\n• Excellent working knowledge of Microsoft Office\n• Demonstrated professional work characteristics including high initiative, dependability, and ability to manage confidential information\n• Must be well organized and comfortable interfacing with all levels of management\nAmcor Leadership Framework Competencies\n• Drive for Results\n• Influencing Others\n• Customer Focus\n• Learning on the Fly\n• Interpersonal Savvy\n• Organizational Awareness\n• Priority Setting\n• Organizing\n• Functional / Technical Skills\n• Strong Computer Skills\n\nRelationships\n• Amcor Leadership\n• Direct Reports\n• External Vendors\n• Government agencies\n• Global partners/ Nonprofit organizations\n• Industry organizations\nExpected Travel: 10% Travel\n\nThe information contained herein is not intended to be an all-inclusive list of the duties and responsibilities of the job, nor are they intended to be an all-inclusive list of the skills and abilities required to do the job.\n\n#North America",
"extensions":[
"Over 1 month ago",
"Full-time"
]
},
{
"title":"Environmental Jobs in Michigan,USA",
"company_name":"freelancejobopenings.com",
"location":"Michigan",
"via":"via Freelance Job Openings",
"description":"Environmental Jobs in Michigan,USA\n\nSummer Camp Instructor\n\nenvironmental learning center at barr lake state park with a satellite office in fort collins and fieldwork outposts in environmental science, leadership, and or outdoor adventure programs for diverse audiences in formal and non formal outdoor and classroom environmental studies, biological sciences, natural resource management, or related field, with a focus in ornithology.\n\n strong summer, birding, camp, education, colorado, outdoors, teaching\n\nwebsite: barefoot student summer camp\n\nSITE LEAD\n\nenvironmental changes, and sudden work schedule changes.\n• tech savvy: frito lay is an industry leader site: fritolay the site lead is accountable for ensuring the building is operating at top performance to deliver the zone sops strategy and ensures a safe working environment. the role requires cross functional understanding in order to drive operations success.\n\nwe are open 24 hours a day, which means\n\nField Service ... Chromatography Spectrometry Instruments - Grand Rapids, MI\n\nenvironmental testing, and forensic toxicology looking to hire field service engineer to support lcms and gcms platforms. travel to client labs to perform calibrations, diagnose problems with equipment field service chromatography spectrometry instruments grand rapids, mi\n\nleader in liquid chromatography mass spectrometry and gas chromatography mass spectrometry, supporting clinical research, drug discovery, food and environmental testing, and forensic toxicology looking to hire field service engineer to support\n\nUTA Test Engineer\n\nenvironmental demands may be referenced in an attempt to municate the manner in which this position traditionally is performed. about capgemini:\n\na global leader in consulting, technology services and digital transformation, capgemini is at the forefront of innovation to address the entire breadth of clients’ opportunities in the evolving world of cloud, digital and platforms. building on its strong 50 year heritage and deep industry specific expertise, capgemini enables organizations to realize\n\nIndustrial Water/Wastewater Design Engineer\n\nenvironmental, civil, or chemical\n• 4+ years of industrial water wastewater system environmental, civil or chemical\n• water wastewater treatment design experience in variety industrial markets\n• experience with biological and physical chemical treatment design build experience\n\nwhat we offer engineering water wastewater\n\nbusiness line design and consulting services group (dcs)\n\ncountry",
"extensions":[
"13 hours ago",
"Full-time"
]
}
]
}
If you want more information, check out SerpApi documentation.

Is there some kind of open javascript library for BigQuery UDFs (for Google Analytics data)?

As in topic. Perphaps some of you have stumbled upon the javascript library available in public or list of examples that would be particulary useful while using BigQuery with Google Analytics data? Interesting blog articles count too :)
What you really need is BigQuery Analytics Cookbook
It has quite a wide range of useful use-cases / examples
Query optimization
Tips and best practices
• Query multiple tables
• 3 Days using comma separated table names
• Last 7 Days using TABLE_DATE_RANGE
• Last 3 Months using TABLE_DATE_RANGE
• Last 1 Year using TABLE_DATE_RANGE
• Specific Date Range
• Last 6 Days plus Today’s data (intraday) using multiple TABLE_DATE_RANGE
Basic query examples
• Total [metric] per [dimension]
• Average bounce rate per [dimension]
• Average number of product pageviews by purchaser type
• Average number of transactions per purchaser
• Average amount of money spent per session
• Sequence of hits (pathing analysis)
• Multiple custom dimensions at hit or session level
Advanced query examples
• Products purchased by customers who purchased Product A (Classic Ecommerce)
• Products purchased by customers who purchased product A (Enhanced Ecommerce)
• Average number of user interactions before purchase
• Percentage of stock sold per product
• Profitability of each product
• Real profitability of each product
Note: Using JS UDF can be expensive and also have quite a limitations - so you should use them if you really need. In most (if not all ) reasonably practical cases - using pure BigQuery Standard SQL will be more than sufficient

Resources